mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
Fix route mistake
This commit is contained in:
@@ -132,7 +132,7 @@ type Client struct {
|
||||
func (c *Client) Route(address *tunnel.Address) int {
|
||||
policy := -1
|
||||
var err error
|
||||
if c.defaultPolicy == IPOnDemand {
|
||||
if c.domainStrategy == IPOnDemand {
|
||||
address, err = newIPAddress(address)
|
||||
if err != nil {
|
||||
return c.defaultPolicy
|
||||
|
||||
Reference in New Issue
Block a user