]> git.stg.codes - stg.git/blobdiff - projects/sgauth/web.cpp
Fix non-standard port number for cap_nf settings
[stg.git] / projects / sgauth / web.cpp
index ffab862b76882df51600c8b7ef158b594ed3705a..edafc9d84aa05eede4bdf12e196c6b1f2e2faeb5 100644 (file)
@@ -94,9 +94,8 @@ listenAddr.sin_family = AF_INET;
 listenAddr.sin_port = htons(LISTEN_PORT);
 listenAddr.sin_addr.s_addr = listenWebAddr;
 
-int lng = 1;
-
 #ifndef WIN32
+int lng = 1;
 if (0 != setsockopt(listenSocket, SOL_SOCKET, SO_REUSEADDR, &lng, 4))
     {
     printf("Setsockopt Fail\n");