socks5,ss: improve udp server

This commit is contained in:
nadoo committed 2021-07-31 21:49:58 +08:00
1 parent f3dc252967
commit 32e1c37cfe
6 files changed
+132 -88

No files matched your search

+2 -2
View File
@@ -12,12 +12,12 @@ import (
"github.com/nadoo/glider/proxy"
)
var nm sync.Map
func init() {
proxy.RegisterServer("unix", NewUnixServer)
}
var nm sync.Map
// NewUnixServer returns a unix domain socket server.
func NewUnixServer(s string, p proxy.Proxy) (proxy.Server, error) {
schemes := strings.SplitN(s, ",", 2)