Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add patch for OpenWrt #48

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/openwrt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ define Package/n3n/Default
TITLE:=N2N Peer-to-peer VPN
URL:=http://github.com/n42n/n3n
SUBMENU:=VPN
DEPENDS+=+libcap
endef

define Package/n3n-edge
Expand Down
11 changes: 11 additions & 0 deletions packages/openwrt/patches/001-fix-dir.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/conffile.c
+++ b/src/conffile.c
@@ -1383,7 +1383,7 @@ int n3n_config_setup_sessiondir (n2n_edge_conf_t *conf) {


#ifndef _WIN32
- char *basedir = "/run/n3n";
+ char *basedir = "/var/run/n3n";
#endif
#ifdef _WIN32
char basedir[1024];
Loading