mirror of
https://github.com/fosrl/newt.git
synced 2026-02-07 21:46:39 +00:00
Also close the clients
This commit is contained in:
1
main.go
1
main.go
@@ -791,6 +791,7 @@ persistent_keepalive_interval=5`, util.FixKey(privateKey.String()), util.FixKey(
|
|||||||
|
|
||||||
// Close the WireGuard device and TUN
|
// Close the WireGuard device and TUN
|
||||||
closeWgTunnel()
|
closeWgTunnel()
|
||||||
|
closeClients()
|
||||||
|
|
||||||
if stopFunc != nil {
|
if stopFunc != nil {
|
||||||
stopFunc() // stop the ws from sending more requests
|
stopFunc() // stop the ws from sending more requests
|
||||||
|
|||||||
Reference in New Issue
Block a user