Acris / shadowsocks-asuswrt-merlin

Shadowsock for Asuswrt-Merlin New Gen
MIT License
247 stars 43 forks source link

user_ip_whitelist dont work #61

Open UnknownDef opened 1 week ago

UnknownDef commented 1 week ago
# IP whitelist
## You can add IP address to this file if you need the IP bypass proxy.
vi /opt/share/ss-merlin/rules/user_ip_whitelist.txt

when i add more then 1 ip address, ss writes

Applying localips ipset rule...
: resolving to IPv4 address failedparse 162.159.138.232
: resolving to IPv4 address failedparse 168.159.133.233

it works only with 1 ip address?

Acris commented 1 week ago

It can add multiple IP addresses, one per line.

UnknownDef commented 1 week ago

It can add multiple IP addresses, one per line.

When i add 2 ip in 2 lines

162.159.138.232
168.159.133.233

is says this and dont work...

Applying localips ipset rule...
: resolving to IPv4 address failedparse 162.159.138.232
: resolving to IPv4 address failedparse 168.159.133.233
Acris commented 1 week ago

Try to add IP in CIDR notation:

162.159.138.232/32
168.159.133.233/32
ElectroBandit commented 1 week ago

when i add more then 1 ip address, ss writes

Don't use Windows Notepad because it incorrectly interprets the newline character. I had the same problem with a list of domains - only the first domain worked. Then I edited the list using vi, and it worked.