mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-01 09:26:50 +00:00
chore: support IN-PORT rule
This commit is contained in:
1 parent
64be213b66
commit
b2d7149a95
13 files changed
+60
-14
No files matched your search
@@ -16,5 +16,9 @@ func NewHTTPS(request *http.Request, conn net.Conn) *context.ConnContext {
|
||||
metadata.SrcIP = ip
|
||||
metadata.SrcPort = port
|
||||
}
|
||||
if ip, port, err := parseAddr(conn.LocalAddr().String()); err == nil {
|
||||
metadata.InIP = ip
|
||||
metadata.InPort = port
|
||||
}
|
||||
return context.NewConnContext(conn, metadata)
|
||||
}
|
||||
Reference in new issue
Block a user