mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-05 05:43:31 +00:00
Improve bridge
This commit is contained in:
@@ -158,8 +158,11 @@ func (h *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (n
|
||||
return conn, nil
|
||||
}
|
||||
|
||||
func (h *Outbound) SupportsFlow(network string) bool {
|
||||
return network == N.NetworkICMP && h.icmpPort != nil
|
||||
func (h *Outbound) PreMatchFlow(network string, destination netip.Addr) adapter.PreMatchAction {
|
||||
if network == N.NetworkICMP && h.icmpPort != nil {
|
||||
return adapter.PreMatchFlow
|
||||
}
|
||||
return adapter.PreMatchContinue
|
||||
}
|
||||
|
||||
func (h *Outbound) PortAddresses() (netip.Addr, netip.Addr) {
|
||||
|
||||
Reference in New Issue
Block a user