Skip to content
Discussion options

You must be logged in to vote

Hi,

如果需要在tun2socks中使用自定义代理,只需要实现Dialer接口即可:

type Dialer interface {
	DialContext(context.Context, *M.Metadata) (net.Conn, error)
	DialUDP(*M.Metadata) (net.PacketConn, error)
}

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@myloft
Comment options

@xjasonlyu
Comment options

@myloft
Comment options

@zhangguanzhang
Comment options

Answer selected by myloft
Comment options

You must be logged in to vote
1 reply
@myloft
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants