Browse Source

Show '*' when no bind address is specified for the web server

Georgi Chorbadzhiyski 7 years ago
parent
commit
66f4122fdf
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      tomcast.c

+ 2
- 1
tomcast.c View File

@@ -978,7 +978,8 @@ void parse_options(int argc, char **argv, struct config *cfg) {
978 978
 	}
979 979
 	if (cfg->server_port) {
980 980
 		init_server_socket(cfg->server_addr, cfg->server_port, &cfg->server, &cfg->server_socket);
981
-		printf("\tStarting web srv  : http://%s:%d/status (sock: %d)\n", cfg->server_addr, cfg->server_port, cfg->server_socket);
981
+		printf("\tStarting web srv  : http://%s:%d/status (sock: %d)\n",
982
+			cfg->server_addr ? cfg->server_addr : "*", cfg->server_port, cfg->server_socket);
982 983
 	} else {
983 984
 		printf("\tNo web server\n");
984 985
 	}

Loading…
Cancel
Save