Revision 9f0bee02
Added by Jim Pingle almost 12 years ago
etc/inc/auth.inc | ||
---|---|---|
130 | 130 |
if(strcasecmp($referrer_host, $config['system']['hostname'] . "." . $config['system']['domain']) == 0 |
131 | 131 |
|| strcasecmp($referrer_host, $config['system']['hostname']) == 0) |
132 | 132 |
$found_host = true; |
133 |
|
|
133 | 134 |
if(!empty($config['system']['webgui']['althostnames']) && !$found_host) { |
134 | 135 |
$althosts = explode(" ", $config['system']['webgui']['althostnames']); |
135 | 136 |
foreach ($althosts as $ah) { |
... | ... | |
139 | 140 |
} |
140 | 141 |
} |
141 | 142 |
} |
143 |
|
|
144 |
if(is_array($config['dyndnses']['dyndns']) && !$found_host) |
|
145 |
foreach($config['dyndnses']['dyndns'] as $dyndns) |
|
146 |
if(strcasecmp($dyndns['host'], $referrer_host) == 0) { |
|
147 |
$found_host = true; |
|
148 |
break; |
|
149 |
} |
|
150 |
|
|
151 |
if(is_array($config['dnsupdates']['dnsupdate']) && !$found_host) |
|
152 |
foreach($config['dnsupdates']['dnsupdate'] as $rfc2136) |
|
153 |
if(strcasecmp($rfc2136['host'], $referrer_host) == 0) { |
|
154 |
$found_host = true; |
|
155 |
break; |
|
156 |
} |
|
157 |
|
|
142 | 158 |
if(!$found_host) { |
143 | 159 |
$interface_list_ips = get_configured_ip_addresses(); |
144 | 160 |
foreach($interface_list_ips as $ilips) { |
Also available in: Unified diff
Include both dyndns and rfc2136 hosts in referer check