core

command module
v0.0.0-...-72292b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 1 Imported by: 0

README

Windows

tun设备驱动

https://github.com/WireGuard/wintun

设置网卡IP命令

netsh interface ipv4 set address name="wintun" source=static addr=10.10.10.10 mask=255.255.255.255

\ netsh interface ipv4 add route 0.0.0.0/0 10.10.10.10
\ route add 0.0.0.0/0 10.10.10.10

防止环路

route add {SOCKS5_IP} mask 255.255.255.255 0.0.0.0 metric 1

切换路由

    route add 0.0.0.0 mask 128.0.0.0 10.10.10.10 metric 1

Android

编译为Android aar库使用

go install golang.org/x/mobile/cmd/gomobile@latest
go get golang.org/x/mobile/bind
gomobile init
gomobile bind -o mobileStack.aar -target android -androidapi 24 ./mobileStack

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
https://datatracker.ietf.org/doc/html/rfc1928 https://datatracker.ietf.org/doc/html/rfc1929
https://datatracker.ietf.org/doc/html/rfc1928 https://datatracker.ietf.org/doc/html/rfc1929
go:build linux
go:build linux

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL