Commits

Torbjorn Tornkvist  committed 0218b7e

Avoiding trouble with inet6 by explicitly specifying bind_address.

  • Participants
  • Parent commits f0e62ce

Comments (0)

Files changed (2)

File src/redhot2.app.src

    ]},
 
   % configuration parameters similar to those in the config file specified on the command line
-  {env, [{ip, "0.0.0.0"}
+  {env, [{ip, {127,0,0,1}}
          ,{port, 8282}
 	 ,{log_dir, "/tmp"}
 	 ,{doc_root, "./www"}

File src/redhot2_inets.erl

         inets:start(httpd,
                     [{port, redhot2_deps:get_env(port, redhot2:default_port())}
                      ,{server_name,  redhot2_deps:get_env(hostname, redhot2:hostname())}
+                     ,{bind_address,  redhot2_deps:get_env(ip, {127,0,0,1})}
                      ,{server_root, "."}
                      ,{document_root, redhot2_deps:get_env(doc_root,"./www")}
                      ,{modules, [?MODULE]}