mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2026-04-07 16:26:25 +00:00
Fix RFC 6598 netmask for CGN
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user