Check for SERVER_NAME and SERVER_ADDR in dx_is_localhost function
Differ between IPs and domain names
Merge pull request #2 from hofmannsven/master

Filter both SERVER_NAME and SERVER_ADDR in dx_is_localhost function