Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 2c84405

Browse files
dzuelkefabpot
authored andcommitted
Add fe80::1 to list of loopback addresses.
On my Mac, my loopback interface is configured (via `/etc/hosts`, out of the box) to have both a link-local and a node-local loopback address, with the link-local address taking precedence: ``` lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=3<RXCSUM,TXCSUM> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1  inet 127.0.0.1 netmask 0xff000000  inet6 ::1 prefixlen 128  ``` That obviously results in a `REMOTE_ADDR` of "fe80::1" rather than just "::1".
1 parent 5c3e3b0 commit 2c84405

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/app_dev.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
1313
|| !in_array(@$_SERVER['REMOTE_ADDR'], array(
1414
'127.0.0.1',
15+
'fe80::1',
1516
'::1',
1617
))
1718
) {

0 commit comments

Comments
 (0)