fix: try let fakeip mode get real destination ip

This commit is contained in:
wwqgtxx
2022-10-09 10:48:26 +08:00
parent 986c91b5c8
commit 90688b238a
2 changed files with 2 additions and 1 deletions

View File

@ -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,