#81356Make hostname work like IP address in devIPmask setting
Description
Unfortunatly I don’t have a fixed IP address, so I use a dyndns-like service to identify my computer. That has some implications when it comes to debugging, because when I use
[SYS][displayErrors] = -1
I would like to be able to write
[SYS][devIPmask] = example.dyndns.com
The IP address can be obtained by http://php.net/manual/function.gethostbyname.php so I guess it would be rather easy to extend this functionality.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Susanne Moog changed category 03/25/20, 13:58
-
Oliver Hader commented 06/24/24, 11:10
-
Benni Mack commented and changed status
NewClosed 06/24/24, 12:22We won’t do that.
This is IMHO an edge-case issue: One could also use a VPN to conquer this.
- gethostbyname() does not properly support IP v6
- gethostbyname() / DNS can be an issue for disabling the site completely.Instead, I would go with a solution / workaround in your case in AdditionalConfiguration /additional.php:
if ($_SERVER['REMOTE_HOST'] === 'my.site') { $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIpMask'] = '*'; }
Seems to be doable, however there are two remarks: