Termination of networks upon removal of their network adapter.

This commit is contained in:
Kleissner
2021-03-02 04:14:22 +01:00
parent 213c724016
commit 56a24b8b64
3 changed files with 61 additions and 18 deletions

View File

@@ -137,6 +137,7 @@ func networkPrepareListen(ipA string, port int) (network *Network, err error) {
}
network = new(Network)
network.terminateSignal = make(chan interface{})
// get the network interface that belongs to the IP
if ipA != "0.0.0.0" && ipA != "::" {