1 Star 0 Fork 1

快码/tun2socks

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sockopt.go 279 Bytes
一键复制 编辑 原始数据 按行查看 历史
xjasonlyu 提交于 2023-05-20 14:53 +08:00 . Refactor: relocate dialer pkg
package dialer
func isTCPSocket(network string) bool {
switch network {
case "tcp", "tcp4", "tcp6":
return true
default:
return false
}
}
func isUDPSocket(network string) bool {
switch network {
case "udp", "udp4", "udp6":
return true
default:
return false
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kuai-ma/tun2socks.git
git@gitee.com:kuai-ma/tun2socks.git
kuai-ma
tun2socks
tun2socks
v2.5.12

搜索帮助