net/shadowsocks: add local_address (#553)

This commit is contained in:
Michael
2018-02-09 07:14:17 +01:00
committed by Franco Fichtner
parent c0f4d4ef29
commit b7158a3456
4 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= shadowsocks
PLUGIN_VERSION= 0.2
PLUGIN_VERSION= 0.3
PLUGIN_COMMENT= Secure socks5 proxy
PLUGIN_DEPENDS= shadowsocks-libev
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -17,6 +17,12 @@
<type>text</type>
<help>Port of the remote server.</help>
</field>
<field>
<id>local.localaddress</id>
<label>Local Address</label>
<type>text</type>
<help>IP address to listen to, this should be your LAN IP address.</help>
</field>
<field>
<id>local.localport</id>
<label>Local Port</label>
@@ -19,6 +19,11 @@
<MaximumValue>65535</MaximumValue>
<ValidationMessage>Please provide a valid port number between 1 and 65535.</ValidationMessage>
</serverport>
<localaddress type="HostnameField">
<default>127.0.0.1</default>
<Required>Y</Required>
<ValidationMessage>Please provide a valid hostname or IP address.</ValidationMessage>
</localaddress>
<localport type="IntegerField">
<default>1080</default>
<Required>Y</Required>
@@ -2,6 +2,7 @@
{
"server":"{{ OPNsense.shadowsocks.local.serveraddress }}",
"server_port":{{ OPNsense.shadowsocks.local.serverport }},
"local_address":"{{ OPNsense.shadowsocks.local.localaddress }}",
"local_port":{{ OPNsense.shadowsocks.local.localport }},
"password":"{{ OPNsense.shadowsocks.local.password }}",
"timeout":60,