mirror of
https://github.com/cesanta/mongoose.git
synced 2025-07-26 07:06:15 +08:00
Binding to 127.0.0.1 to prevent popup windows on mac
This commit is contained in:
parent
9c4853471c
commit
4b29689a42
@ -158,8 +158,9 @@ if (scalar(@ARGV) > 0 and $ARGV[0] eq 'unit') {
|
|||||||
|
|
||||||
# Make sure we load config file if no options are given.
|
# Make sure we load config file if no options are given.
|
||||||
# Command line options override config files settings
|
# Command line options override config files settings
|
||||||
write_file($config, "access_log_file access.log\nlistening_ports 12345\n");
|
write_file($config, "access_log_file access.log\n" .
|
||||||
spawn("$exe -p $port");
|
"listening_ports 127.0.0.1:12345\n");
|
||||||
|
spawn("$exe -p 127.0.0.1:$port");
|
||||||
o("GET /test/hello.txt HTTP/1.0\n\n", 'HTTP/1.1 200 OK', 'Loading config file');
|
o("GET /test/hello.txt HTTP/1.0\n\n", 'HTTP/1.1 200 OK', 'Loading config file');
|
||||||
unlink $config;
|
unlink $config;
|
||||||
kill_spawned_child();
|
kill_spawned_child();
|
||||||
|
Loading…
Reference in New Issue
Block a user