Browse Source

Don't restrict cppcms-direct requests to localhost (#3201)

In local testing on a 3-machine setup, this makes cppcms-direct pass all
test types where it was previously failing.
Michael Hixson 7 years ago
parent
commit
3726ca1153
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/C++/cppcms/setup.sh

+ 1 - 1
frameworks/C++/cppcms/setup.sh

@@ -33,7 +33,7 @@ if [ -n "${NGINX}" ]; then
     #sed -i 's|\(.*\)--address--\(.*\)|\1"ip": "127.0.0.1" , "port" : 8081\2|g' config.js
     #sed -i 's|\(.*\)--address--\(.*\)|\1"ip": "127.0.0.1" , "port" : 8081\2|g' config.js
 else
 else
     sed -i 's|\(.*\)--api--\(.*\)|\1'"http"'\2|g' config.js
     sed -i 's|\(.*\)--api--\(.*\)|\1'"http"'\2|g' config.js
-    sed -i 's|\(.*\)--address--\(.*\)|\1"port": 8080\2|g' config.js
+    sed -i 's|\(.*\)--address--\(.*\)|\1"ip": "0.0.0.0", "port": 8080\2|g' config.js
 fi
 fi