X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/47ed01e1c077fdce7182b1cc83d33d8475d5e88b..a8689998a9b2cfc17dc260b423cce8ff2e407adb:/projects/sgauth/main.cpp

diff --git a/projects/sgauth/main.cpp b/projects/sgauth/main.cpp
index b161a5f3..d0ab3c35 100644
--- a/projects/sgauth/main.cpp
+++ b/projects/sgauth/main.cpp
@@ -35,8 +35,8 @@
 #include <iostream>
 #include <vector>
 
-#include "ia_auth_c.h"
-#include "common.h"
+#include "stg/ia.h"
+#include "stg/common.h"
 #include "web.h"
 #include "settings_impl.h"
 
@@ -200,7 +200,7 @@ if (settings.GetDaemon())
         }
     }
 
-clnp = new IA_CLIENT_PROT(settings.GetServerName(), settings.GetServerPort(), settings.GetLocalPort());
+clnp = new IA_CLIENT_PROT(settings.GetServerName(), settings.GetServerPort(), settings.GetLocalName(), settings.GetLocalPort());
 
 if (!settings.GetNoWeb())
     {
@@ -239,7 +239,8 @@ clnp->Connect();
 
 while (1)
     {
-    usleep(200000);
+    struct timespec ts = {0, 200000000};
+    nanosleep(&ts, NULL);
 
     char state[20];