Skip to content

请教有没有推荐的的集成方案 #139

Answered by xjasonlyu
myloft asked this question in Q&A
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: 1 comment 3 replies

Comment options

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

@xjasonlyu
Comment options

@myloft
Comment options

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