mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/shadowsocks: add local_address (#553)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user