mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Working MLVPN markfoodyburton version
This commit is contained in:
parent
b901339cdf
commit
95385a77a7
3 changed files with 27 additions and 9 deletions
|
@ -8,17 +8,17 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mlvpn
|
PKG_NAME:=mlvpn
|
||||||
PKG_VERSION:=6f13423b
|
#PKG_VERSION:=6f13423b
|
||||||
#PKG_VERSION:=8002488
|
PKG_VERSION:=54ba2d8
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/zehome/MLVPN.git
|
#PKG_SOURCE_URL:=https://github.com/zehome/MLVPN.git
|
||||||
PKG_SOURCE_VERSION:=6f13423b8108f46edb9f230deee20e3741abe64c
|
#PKG_SOURCE_VERSION:=6f13423b8108f46edb9f230deee20e3741abe64c
|
||||||
PKG_SOURCE_DATE:=2017-09-01
|
#PKG_SOURCE_DATE:=2017-09-01
|
||||||
#PKG_SOURCE_URL:=https://github.com/markfoodyburton/MLVPN.git
|
PKG_SOURCE_URL:=https://github.com/markfoodyburton/MLVPN.git
|
||||||
#PKG_SOURCE_VERSION:=8002488c20438c51fb68fa51f7df115dd2f7dafb
|
PKG_SOURCE_VERSION:=54ba2d837a20bcb59cf2e690354d132152cdf79f
|
||||||
#PKG_SOURCE_DATE:=2018-06-11
|
PKG_SOURCE_DATE:=2018-07-01
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-2-Clause
|
PKG_LICENSE:=BSD-2-Clause
|
||||||
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||||
|
|
|
@ -42,7 +42,8 @@ start_service() {
|
||||||
[ "${enable}" = "1" ] || return 1
|
[ "${enable}" = "1" ] || return 1
|
||||||
|
|
||||||
if [ "$(uci -q get network.omrvpn)" != "" ]; then
|
if [ "$(uci -q get network.omrvpn)" != "" ]; then
|
||||||
uci -q set network.omrvpn.ifname=mlvpn0
|
uci -q set network.omrvpn.ifname=${interface_name}
|
||||||
|
uci -q commit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat > /tmp/etc/${interface_name}.conf <<-EOF
|
cat > /tmp/etc/${interface_name}.conf <<-EOF
|
||||||
|
@ -51,6 +52,7 @@ start_service() {
|
||||||
mode = "${mode}"
|
mode = "${mode}"
|
||||||
interface_name = "${interface_name}"
|
interface_name = "${interface_name}"
|
||||||
timeout = ${timeout}
|
timeout = ${timeout}
|
||||||
|
reorder_buffer = yes
|
||||||
reorder_buffer_size = ${reorder_buffer_size}
|
reorder_buffer_size = ${reorder_buffer_size}
|
||||||
loss_tolerence = ${loss_tolerence}
|
loss_tolerence = ${loss_tolerence}
|
||||||
password = "${password}"
|
password = "${password}"
|
||||||
|
|
16
mlvpn/patches/020-config-bindaddr.patch
Normal file
16
mlvpn/patches/020-config-bindaddr.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--- a/src/config.c 2018-07-01 19:02:09.192210482 +0200
|
||||||
|
+++ b/src/config.c 2018-07-01 19:03:13.263404635 +0200
|
||||||
|
@@ -302,9 +302,11 @@
|
||||||
|
config, lastSection, "remoteport", &dstport, NULL,
|
||||||
|
"No remote port specified.\n", 1);
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- bindaddr=ip_from_if(bindaddr);
|
||||||
|
|
||||||
|
+ if (bindaddr)
|
||||||
|
+ {
|
||||||
|
+ bindaddr=ip_from_if(bindaddr);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
_conf_set_uint_from_conf(
|
||||||
|
config, lastSection, "bandwidth_upload", &bwlimit, 0,
|
Loading…
Add table
Add a link
Reference in a new issue