mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-16 18:37:51 +01:00
Termination of networks upon removal of their network adapter.
This commit is contained in:
@@ -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 != "::" {
|
||||
|
||||
Reference in New Issue
Block a user