mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-03 08:15:40 +00:00
Fix RFC 6598 netmask for CGN
This commit is contained in:
parent
1137825a4f
commit
1b3fef5408
@ -640,7 +640,7 @@ bool IsLikelyNAT(unsigned long netByteOrderAddr)
|
||||
return true;
|
||||
}
|
||||
// 100.64.0.0/10 - RFC6598 official CGN address
|
||||
else if ((addr & 0xFFC0) == 0x64400000) {
|
||||
else if ((addr & 0xFFC00000) == 0x64400000) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -555,7 +555,7 @@ bool IsPossibleCGN(PSOCKADDR_IN wanAddr)
|
||||
return true;
|
||||
}
|
||||
// 100.64.0.0/10 - RFC6598 official CGN address
|
||||
else if ((addr & 0xFFC0) == 0x64400000) {
|
||||
else if ((addr & 0xFFC00000) == 0x64400000) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user