mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
socks5,ss: improve udp server
This commit is contained in:
1 parent
f3dc252967
commit
32e1c37cfe
6 files changed
+132
-88
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user