Skip to content

Commit 4a6a74e

Browse files
committed
Unpack port from address
1 parent 0bd1070 commit 4a6a74e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Command/Serve.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
124124

125125
if (!str_contains($address, ':')) {
126126
$address .= ':' . $port;
127+
} else {
128+
$port = explode(':', $address)[1];
127129
}
128130

129131
if (!is_dir($documentRoot)) {

0 commit comments

Comments
 (0)