]> 127.0.0.1 Git - part/.git/commitdiff
1 v0.28.20240917115209
authorqydysky <qydysky@foxmail.com>
Tue, 17 Sep 2024 11:46:44 +0000 (19:46 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 17 Sep 2024 11:46:44 +0000 (19:46 +0800)
Net.go

diff --git a/Net.go b/Net.go
index 7df115eb1fa883e2bc7ace18a57b75d1e3274737..1e317af86221634c818a7ffffc292a4e22c924bf 100644 (file)
--- a/Net.go
+++ b/Net.go
@@ -141,6 +141,7 @@ func connBridge(a, b net.Conn) {
 
 func Forward(targetaddr, listenaddr string, acceptCIDRs []string) (closef func(), msg_chan chan ForwardMsg) {
        msg_chan = make(chan ForwardMsg, 1000)
+       closef = func() {}
 
        lisNet := strings.Split(listenaddr, "://")[0]
        lisAddr := strings.Split(listenaddr, "://")[1]