Compare commits

...

4 commits
master ... dev

Author SHA1 Message Date
sstidl bccdf5ff27
schedule build once a week 2024-04-15 11:55:58 +02:00
Stefan Stidl ac1d806490 Merge branch 'master' into dev 2024-03-14 08:55:14 +01:00
sstidl f5ad810138
Merge pull request #593 from RedPine404/master
Added IPv6 ULA regex match
2023-12-06 09:35:23 +01:00
redpine d949663649 Added IPv6 ULA match 2023-12-05 14:48:43 -06:00
2 changed files with 7 additions and 2 deletions

View file

@ -6,8 +6,8 @@ name: Docker
# documentation.
on:
# schedule:
# - cron: '30 20 * * *'
schedule:
- cron: '00 11 * * Mon'
push:
branches: ["*"]
# Publish semver tags as releases.

View file

@ -30,6 +30,11 @@ function getLocalOrPrivateIpInfo($ip)
return 'link-local IPv6 access';
}
// fc00::/7 Unique Local IPv6 Unicast Addresses
if (preg_match('/^(fc|fd)([0-9a-f]{0,4}:){1,7}[0-9a-f]{1,4}$/i', $ip) === 1) {
return 'ULA IPv6 access';
}
// anything within the 127/8 range is localhost ipv4, the ip must start with 127.0
if (strpos($ip, '127.') === 0) {
return 'localhost IPv4 access';