mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
socks5: support protocol chain with unix socket(#291)
This commit is contained in:
1 parent
cf1a4e3817
commit
720f12aa0a
6 files changed
+25
-20
No files matched your search
@@ -52,7 +52,7 @@ func (s *Unix) ListenAndServeTCP() {
|
||||
}
|
||||
defer l.Close()
|
||||
|
||||
log.F("[unix] listening on %s", s.addr)
|
||||
log.F("[unix] Listen on %s", s.addr)
|
||||
|
||||
for {
|
||||
c, err := l.Accept()
|
||||
@@ -108,7 +108,7 @@ func (s *Unix) ListenAndServeUDP() {
|
||||
s.ServePacket(c)
|
||||
}
|
||||
|
||||
// ServePacket implementes proxy.PacketServer
|
||||
// ServePacket implementes proxy.PacketServer.
|
||||
func (s *Unix) ServePacket(pc net.PacketConn) {
|
||||
if server, ok := s.server.(proxy.PacketServer); ok {
|
||||
server.ServePacket(pc)
|
||||
@@ -123,6 +123,8 @@ func (s *Unix) ServePacket(pc net.PacketConn) {
|
||||
continue
|
||||
}
|
||||
|
||||
log.F("!!! unix ServePacker read from: %s", srcAddr)
|
||||
|
||||
var session *Session
|
||||
sessionKey := srcAddr.String()
|
||||
|
||||
|
||||
Reference in new issue
Block a user