Skip to content

Instantly share code, notes, and snippets.

@metalefty
Created October 12, 2017 02:27
Show Gist options
  • Select an option

  • Save metalefty/3d69807625558bab36b3e8e89f8c0db3 to your computer and use it in GitHub Desktop.

Select an option

Save metalefty/3d69807625558bab36b3e8e89f8c0db3 to your computer and use it in GitHub Desktop.
unlock softether radius
--- src/Cedar/Server.c.orig 2017-10-12 11:08:12.177671000 +0900
+++ src/Cedar/Server.c 2017-10-12 11:09:50.287845000 +0900
@@ -115,12 +115,12 @@
static SERVER *server = NULL;
static LOCK *server_lock = NULL;
-char *SERVER_CONFIG_FILE_NAME = "@vpn_server.config";
-char *SERVER_CONFIG_FILE_NAME_IN_CLIENT = "@vpn_gate_svc.config";
-char *SERVER_CONFIG_FILE_NAME_IN_CLIENT_RELAY = "@vpn_gate_relay.config";
-char *BRIDGE_CONFIG_FILE_NAME = "@vpn_bridge.config";
-char *SERVER_CONFIG_TEMPLATE_NAME = "@vpn_server_template.config";
-char *BRIDGE_CONFIG_TEMPLATE_NAME = "@vpn_server_template.config";
+char *SERVER_CONFIG_FILE_NAME = "/var/db/softether/vpn_server.config";
+char *SERVER_CONFIG_FILE_NAME_IN_CLIENT = "/var/db/softether/vpn_gate_svc.config";
+char *SERVER_CONFIG_FILE_NAME_IN_CLIENT_RELAY = "/var/db/softether/vpn_gate_relay.config";
+char *BRIDGE_CONFIG_FILE_NAME = "/var/db/softether/vpn_bridge.config";
+char *SERVER_CONFIG_TEMPLATE_NAME = "/var/db/softether/vpn_server_template.config";
+char *BRIDGE_CONFIG_TEMPLATE_NAME = "/var/db/softether/vpn_server_template.config";
static bool server_reset_setting = false;
@@ -10822,23 +10822,7 @@
//
bool SiIsEnterpriseFunctionsRestrictedOnOpenSource(CEDAR *c)
{
- char region[128];
- bool ret = false;
- // Validate arguments
- if (c == NULL)
- {
- return false;
- }
-
-
- SiGetCurrentRegion(c, region, sizeof(region));
-
- if (StrCmpi(region, "JP") == 0 || StrCmpi(region, "CN") == 0)
- {
- ret = true;
- }
-
- return ret;
+ return false;
}
// Update the current region
@@ -10916,7 +10900,7 @@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment