Ivan Skytte Jørgensen
e887cef945
bugfix is_internal_net_ip/is_trusted_protocol_ip (harmless)
2017-01-30 11:24:29 +01:00
Ivan Skytte Jørgensen
4864e7022f
Better comments and explanations in IPAddressChecks.cpp
2016-10-20 15:34:20 +02:00
Ivan Skytte Jørgensen
49c41e17c0
Revert "removed duplicate function is_trusted_protocol_ip from IPAddressChecks"
...
This reverts commit f46086a463
.
2016-10-20 15:34:20 +02:00
Brian Rasmusson
f46086a463
removed duplicate function is_trusted_protocol_ip from IPAddressChecks
2016-10-19 20:20:57 +02:00
Ivan Skytte Jørgensen
dd22b1e8d8
Make is_same_network_linkwise() always return false
...
Effectively disabled the IP-address check until we can measure if there is any
benefit to it nowadays. (now in 2016 many sites are served via CDNs or shared
hosting)
2016-06-09 12:33:36 +02:00
Ivan Skytte Jørgensen
10467334ea
Factor out same-ip-network checks in Linkdb.cpp
...
Implemented is_same_network_linkwise() and used that instead of having masking
with the magic constanct 0x0000ffff spread out all over the code.
2016-06-09 12:30:41 +02:00
Ivan Skytte Jørgensen
0509d08752
Simplify/isolate IP-address check in UdpServer
2016-02-18 12:53:15 +01:00
Ivan Skytte Jørgensen
854f250060
Simplify and centalize check for if a host is on the intranet/internal net
2016-02-02 13:59:01 +01:00
Ivan Skytte Jørgensen
fb9c56c156
Use symbolic constants for return values from ip_distance()
2016-02-02 11:34:37 +01:00
Ivan Skytte Jørgensen
61b8dad74c
Added more structured tests for IP location/dinstance
...
Added file IPAddressChecks.* which provides IP dinstance checks/estimates based
on actual machine configuration instead of guesses based on classfull netmasks.
2016-02-01 15:33:40 +01:00