Group Microsoft/OneDrive no-PTR ranges into one district
OneDrive's IPs (e.g. 13.107.x, 150.171.x) have no PTR and weren't in our CIDR table, so each fragmented into its own IP-named district — a long session showed dozens, all with the "OneDrive" process subtitle. Add the documented Microsoft 365 service ranges so they collapse to one Microsoft district. Deliberately excludes generic Azure tenant space, which would mislabel third-party apps hosted on Azure. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,14 @@ final class IPRangesTests: XCTestCase {
|
||||
XCTAssertEqual(IPRanges.match("149.154.175.54")?.key, "telegram")
|
||||
}
|
||||
|
||||
func testOneDriveNoPTRRangesCollapseToMicrosoft() {
|
||||
// Real OneDrive front-end IPs (no PTR) that used to fragment per-IP.
|
||||
XCTAssertEqual(IPRanges.match("13.107.137.11")?.key, "microsoft")
|
||||
XCTAssertEqual(IPRanges.match("150.171.22.11")?.name, "Microsoft")
|
||||
XCTAssertEqual(IPRanges.match("52.108.1.1")?.key, "microsoft")
|
||||
XCTAssertEqual(IPRanges.match("40.96.0.1")?.key, "microsoft")
|
||||
}
|
||||
|
||||
func testPrivateRangesAreLocalNetwork() {
|
||||
XCTAssertEqual(IPRanges.match("192.168.0.1")?.name, "Local Network")
|
||||
XCTAssertEqual(IPRanges.match("10.1.2.3")?.key, "lan")
|
||||
|
||||
Reference in New Issue
Block a user