fix: try let fakeip mode get real destination ip
This commit is contained in:
parent
fe689885f3
commit
b4d4dc251d
2 changed files with 2 additions and 1 deletions
|
@ -166,7 +166,7 @@ func New(options Options) (*Pool, error) {
|
|||
var (
|
||||
hostAddr = options.IPNet.Masked().Addr()
|
||||
gateway = hostAddr.Next()
|
||||
first = gateway.Next().Next()
|
||||
first = gateway.Next().Next().Next() // default start with 198.18.0.4
|
||||
last = nnip.UnMasked(*options.IPNet)
|
||||
)
|
||||
|
||||
|
|
|
@ -1138,6 +1138,7 @@ func parseTun(rawTun RawTun, general *General, dnsCfg *DNS) (*Tun, error) {
|
|||
} else {
|
||||
tunAddressPrefix = netip.MustParsePrefix("198.18.0.1/16")
|
||||
}
|
||||
tunAddressPrefix = netip.PrefixFrom(tunAddressPrefix.Addr(), 30)
|
||||
|
||||
return &Tun{
|
||||
Enable: rawTun.Enable,
|
||||
|
|
Loading…
Reference in a new issue