Skip to content

Commit

Permalink
add todo to use fwmask
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Oct 23, 2023
1 parent f57ce3e commit f11a1c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/examples/outline-cli/routing_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ func setupIpRule(svrIp string, routingTable, routingPriority int) error {
return fmt.Errorf("failed to parse server IP CIDR '%s': %w", svrIp, err)
}

// todo: exclude server IP will cause issues when accessing services on the same server,
// use fwmask to protect the shadowsocks socket instead
ipRule = netlink.NewRule()
ipRule.Priority = routingPriority
ipRule.Family = netlink.FAMILY_V4
Expand Down

0 comments on commit f11a1c2

Please sign in to comment.