Skip to content

Commit

Permalink
Fix IPv6 forwarding issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Oct 3, 2023
1 parent 8988a0b commit abb2478
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion luci-app-socat/root/etc/init.d/luci_socat
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ run_service() {
config_get proxy_port $1 proxy_port
config_get firewall_accept $1 firewall_accept
ln -s /usr/bin/socat ${CONFIG_PATH}/$1


if [ "$dest_proto" == "tcp6" ] || [ "$dest_proto" == "udp6" ]; then
dest_ip="[$dest_ip]"
fi
if [ "$reuseaddr" == "1" ]; then
reuseaddr=",reuseaddr"
else
Expand Down

0 comments on commit abb2478

Please sign in to comment.