mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-08 18:20:41 +08:00
Chore(stack): update comments
This commit is contained in:
@@ -49,13 +49,13 @@ func New(ep stack.LinkEndpoint, handler core.Handler, opts ...Option) (*Stack, e
|
|||||||
// Create stack NIC and then bind link endpoint.
|
// Create stack NIC and then bind link endpoint.
|
||||||
withCreatingNIC(ep),
|
withCreatingNIC(ep),
|
||||||
|
|
||||||
// In past we did s.AddAddressRange to assign 0.0.0.0/0 onto
|
// In the past we did s.AddAddressRange to assign 0.0.0.0/0
|
||||||
// the interface. We need that to be able to terminate all the
|
// onto the interface. We need that to be able to terminate
|
||||||
// incoming connections - to any ip. AddressRange API has been
|
// all the incoming connections - to any ip. AddressRange API
|
||||||
// removed and the suggested workaround is to use Promiscuous
|
// has been removed and the suggested workaround is to use
|
||||||
// mode. https://github.com/google/gvisor/issues/3876
|
// Promiscuous mode. https://github.com/google/gvisor/issues/3876
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/majek/slirpnetstack/blob/master/stack.go
|
// Ref: https://github.com/cloudflare/slirpnetstack/blob/master/stack.go
|
||||||
withPromiscuousMode(nicPromiscuousModeEnabled),
|
withPromiscuousMode(nicPromiscuousModeEnabled),
|
||||||
|
|
||||||
// Enable spoofing if a stack may send packets from unowned addresses.
|
// Enable spoofing if a stack may send packets from unowned addresses.
|
||||||
|
Reference in New Issue
Block a user