Skip to content

Commit 4381bac

Browse files
committed
build runner: output hint when no --port provided
1 parent cfe6ff4 commit 4381bac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/std/Build/Fuzz/WebServer.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ pub fn run(ws: *WebServer) void {
6464
};
6565
const port = http_server.listen_address.in.getPort();
6666
log.info("web interface listening at http://127.0.0.1:{d}/", .{port});
67+
if (ws.listen_address.in.getPort() == 0)
68+
log.info("hint: pass --port {d} to use this same port next time", .{port});
6769

6870
while (true) {
6971
const connection = http_server.accept() catch |err| {

0 commit comments

Comments
 (0)