Skip to content

Commit

Permalink
IPv6 filtering (#13)
Browse files Browse the repository at this point in the history
* build: update deps

* stan: port should be string

* stan: cast port integer to string

* refactor: use standard namespace cli

* fix: set debug parameter as non-named

* fix: IPv6 accepted/closing messages are filtered
closes #12
  • Loading branch information
g105b authored Oct 12, 2021
1 parent 799f18f commit 3f22445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cli/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function run(ArgumentValueList $arguments = null):void {
$output = $process->getOutput();
$error = $process->getErrorOutput();

if(preg_match("/127\.0\.0\.1:\d+ (Accepted|Closing)/", $error)) {
if(preg_match("/(127\.0\.0\.1|localhost|\[[\d:]+\]):\d+ (Accepted|Closing)/", $error)) {
$error = "";
}

Expand Down

0 comments on commit 3f22445

Please sign in to comment.