]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp
Include header for select in inetaccess.cpp
[stg.git] / projects / stargazer / plugins / authorization / inetaccess / inetaccess.cpp
index 3918f0b30c7a1ec6366fc5a72d0fe158f56f9994..23b1a1c9bc8c26032561ee261ab32c8689af1acc 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <sys/select.h>
 
 #include <csignal>
 #include <cstdlib>
@@ -41,8 +42,8 @@
 #include "common.h"
 #include "stg_locker.h"
 #include "tariff.h"
-#include "../../../settings.h"
-#include "../../../user_property.h"
+#include "user_property.h"
+#include "settings.h"
 
 extern volatile const time_t stgTime;
 
@@ -1293,7 +1294,7 @@ if ((iaUser->phase.GetPhase() == 2) && (connAck->rnd == iaUser->rnd + 1))
     iaUser->phase.UpdateTime();
 
     iaUser->lastSendAlive = iaUser->phase.GetTime();
-    if (iaUser->user->Authorize(sip, "", enabledDirs, this) == 0)
+    if (iaUser->user->Authorize(sip, enabledDirs, this) == 0)
         {
         iaUser->phase.SetPhase3();
         printfd(__FILE__, "Phase changed from 2 to 3. Reason: CONN_ACK_6\n");
@@ -1328,7 +1329,7 @@ if ((iaUser->phase.GetPhase() == 2) && (connAck->rnd == iaUser->rnd + 1))
     {
     iaUser->phase.UpdateTime();
     iaUser->lastSendAlive = iaUser->phase.GetTime();
-    if (iaUser->user->Authorize(sip, "", enabledDirs, this) == 0)
+    if (iaUser->user->Authorize(sip, enabledDirs, this) == 0)
         {
         iaUser->phase.SetPhase3();
         printfd(__FILE__, "Phase changed from 2 to 3. Reason: CONN_ACK_8\n");