fix default address
Stefan Schuermans

Stefan Schuermans commited on 2018-08-14 14:53:45
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -45,7 +45,7 @@ Distri::Distri():
45 45
 {
46 46
   // initialize address to localhost and automatic port
47 47
   m_addr.sin_family = AF_INET;
48
-  m_addr.sin_addr.s_addr = INADDR_LOOPBACK;
48
+  m_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
49 49
   m_addr.sin_port = htons(0);
50 50
 }
51 51
 
52 52