File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ function (string $url, ?string $file = null): bool {
5252 ;
5353 },
5454 function (string $ url , ?string $ file = null ): bool {
55- return (bool )preg_match ('@(https?:)?//([a-z]+\.)?(localhost|127.0.0.1)(:[0-9]+)?(/.*|$)@ ' , $ url );
55+ return (bool )preg_match ('@(https?:)?//([a-z]+\.)?(localhost|127.0.0.1|123.456.789.0 )(:[0-9]+)?(/.*|$)@ ' , $ url );
5656 },
5757 function (string $ url , ?string $ file = null ): bool {
5858 // Fake, placeholders, local servers, etc.
@@ -67,7 +67,8 @@ function (string $url, ?string $file = null): bool {
6767 || str_contains ($ url , '//FRA_server_uri ' )
6868 || str_contains ($ url , '//user:password@host ' )
6969 || str_contains ($ url , '//user:pass@localhost ' )
70- || str_contains ($ url , '//varnish ' )
70+ || str_contains ($ url , '//elasticsearch:9200 ' )
71+ || str_contains ($ url , '//varnish:80 ' )
7172 || str_contains ($ url , '//my.varnish.server ' )
7273 ;
7374 },
You can’t perform that action at this time.
0 commit comments