mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
feat: RULE-SET in rules support ,src option
should only be used with `ipcidr` behavior
This commit is contained in:
@@ -302,3 +302,10 @@ func (m *Metadata) SetRemoteAddress(rawAddress string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Metadata) SwapSrcDst() {
|
||||
m.SrcIP, m.DstIP = m.DstIP, m.SrcIP
|
||||
m.SrcPort, m.DstPort = m.DstPort, m.SrcPort
|
||||
m.SrcIPASN, m.DstIPASN = m.DstIPASN, m.SrcIPASN
|
||||
m.SrcGeoIP, m.DstGeoIP = m.DstGeoIP, m.SrcGeoIP
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user