You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/linux/helper/server.cpp
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
#include<unistd.h>
16
16
#include<spdlog/spdlog.h>
17
17
18
-
#include"firewallcontroller.h"
18
+
#include"firewallonboot.h"
19
19
#include"ipc/helper_security.h"
20
20
#include"process_command.h"
21
21
#include"utils.h"
@@ -171,10 +171,11 @@ void Server::run()
171
171
172
172
#ifdef NDEBUG // release build
173
173
Utils::createWindscribeUserAndGroup();
174
-
auto res = system("mkdir -p /var/run/windscribe && chown :windscribe /var/run/windscribe && chmod 775 /var/run/windscribe"); // res is necessary to avoid no-discard warning.
174
+
auto res = system("mkdir -p /var/run/windscribe && chown :windscribe /var/run/windscribe && chmod 775 /var/run/windscribe && mkdir -p /var/tmp/windscribe"); // res is necessary to avoid no-discard warning.
175
175
#else// debug build
176
-
auto res = system("mkdir -p /var/run/windscribe && chmod 777 /var/run/windscribe");
176
+
auto res = system("mkdir -p /var/run/windscribe && chmod 777 /var/run/windscribe && mkdir -p /var/tmp/windscribe");
177
177
#endif
178
+
spdlog::info("/var/run/windscribe and /var/tmp/windscribe created");
178
179
UNUSED(res);
179
180
180
181
::unlink(SOCK_PATH);
@@ -198,8 +199,9 @@ void Server::run()
198
199
}
199
200
#endif
200
201
201
-
// Cause the FirewallController to be constructed here, so that on-boot rules are processed, even if the Windscribe app/service does not start.
202
-
FirewallController::instance();
202
+
// Cause the FireallOnBootManager to be constructed here, so that on-boot rules are processed,
203
+
// even if the Windscribe app/service does not start.
0 commit comments