Skip to content

Commit b5368ac

Browse files
committed
update massage
1 parent 18b4696 commit b5368ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Listener/BootAppRouteListener.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public function process(object $event): void
8989
self::$httpServerName = $httpServer['name'];
9090
$isKnife4j = Composer::hasPackage('tangwei/knife4j-ui');
9191
$docHtml = $isKnife4j ? '/doc' : '';
92-
static::$massage = 'Swagger docs url at http://127.0.0.1:' . $httpServer['port'] . $prefix . $docHtml;
92+
93+
$host = $httpServer['host'] == '0.0.0.0' ? '127.0.0.1' : $httpServer['host'];
94+
static::$massage = 'Swagger docs url at http://' . $host . ':' . $httpServer['port'] . $prefix . $docHtml;
9395
}
9496
}

0 commit comments

Comments
 (0)