-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Allow a list of domains #64
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
$allowedIpsResult = ''; | ||
if($allowedIps !== '*' && !empty($allowedIps)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply PSR coding standards to all files. (space after if)
|
||
/* Convert the domain names to IP addresses */ | ||
if($allowedDomains !== '*' && !empty($allowedDomains)) { | ||
$allowedDomainsArray = explode(',', $allowedDomains); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use GeneralUtility::trimExplode instead
} | ||
|
||
/* Return concatenated IPs and domains IPs */ | ||
return trim($allowedIpsResult, ' ,'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
collect the resulting IPs in an array first and do the implode here-
This feature implements
allowedDomains
next toallowedIps
, retrieves IPs from the DNS and merges it automatically with the allowedIps list.