Skip to content

Commit f138f3a

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: handle NAT64 addresses in isLocalAddress
fix: handle NAT64 addresses in isLocalAddress Signed-off-by: Robin Appelman <robin@icewind.nl> [skip ci]
1 parent ba6e944 commit f138f3a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/private/Net/IpAddressClassifier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace OC\Net;
1111

12+
use IPLib\Address\IPv4;
1213
use IPLib\Address\IPv6;
1314
use IPLib\Factory;
1415
use IPLib\ParseStringFlag;

tests/lib/Net/IpAddressClassifierTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function localIpAddressData(): array {
5151
['::1'],
5252
['100.100.100.200'],
5353
['192.0.0.1'],
54+
['64:ff9b::a9fe:a9fe'], // NAT64 of 169.254.169.254
5455
];
5556
}
5657

0 commit comments

Comments
 (0)