diff --git a/main.go b/main.go index 2943227..4b93c9f 100644 --- a/main.go +++ b/main.go @@ -791,6 +791,7 @@ persistent_keepalive_interval=5`, util.FixKey(privateKey.String()), util.FixKey( // Close the WireGuard device and TUN closeWgTunnel() + closeClients() if stopFunc != nil { stopFunc() // stop the ws from sending more requests