1. Torbjörn Törnkvist
  2. redhoterlang


Torbjorn Tornkvist  committed 0218b7e

Avoiding trouble with inet6 by explicitly specifying bind_address.

  • Participants
  • Parent commits f0e62ce
  • Branches default

Comments (0)

Files changed (2)

File src/redhot2.app.src

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

File src/redhot2_inets.erl

View file
                     [{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]}