V0.2.0 (#37)
* refactor go files, add headless telemost support * js crap -> ts crap * docker-build (#32) Co-authored-by: Mimocro <suzumagefag@gmail.com> * add headless telemost for creator app * UX improvements (#39) * Add search in split tunneling app list * Add captcha detection * Add autoclick settings * headless vk joiner * add headless telemost joiner * refactor go modules * redesign settings dialog * headless option in settings * headless joiner support in MainActivity * display headless vk status in statusBar * update ux for headless in creator app * fix double log render for headless mode in creator * unicode for cyrillic * add socks auth * put socksPort inf prefs, verify that port is free on start * proxy only mode * mask addresses in go network errors * update docker build, add file write logic for headless * increment release version, add make-release script --------- Co-authored-by: kulikov <user@Mac.lan> Co-authored-by: Mimocro <67226986+Mimocro@users.noreply.github.com> Co-authored-by: Mimocro <suzumagefag@gmail.com> Co-authored-by: senya <76913432+senya-sh@users.noreply.github.com>
This commit is contained in:
122 files changed
+9938
-3284
No files matched your search
@@ -16,7 +16,7 @@ var (
|
||||
tunOrigFd int = -1
|
||||
)
|
||||
|
||||
func StartTun2Socks(fd, mtu, socksPort int) error {
|
||||
func StartTun2Socks(fd, mtu, socksPort int, socksUser, socksPass string) error {
|
||||
// dup the fd: tun2socks will close the dup on Stop(),
|
||||
// we keep the original open to prevent the kernel from
|
||||
// recycling the fd number while gvisor goroutines drain
|
||||
@@ -26,7 +26,12 @@ func StartTun2Socks(fd, mtu, socksPort int) error {
|
||||
}
|
||||
tunOrigFd = fd
|
||||
|
||||
proxy := fmt.Sprintf("socks5://127.0.0.1:%d", socksPort)
|
||||
var proxy string
|
||||
if socksUser != "" {
|
||||
proxy = fmt.Sprintf("socks5://%s:%s@127.0.0.1:%d", socksUser, socksPass, socksPort)
|
||||
} else {
|
||||
proxy = fmt.Sprintf("socks5://127.0.0.1:%d", socksPort)
|
||||
}
|
||||
logMsg("tun2socks: starting fd=%d (dup=%d) mtu=%d proxy=%s", fd, dupFd, mtu, proxy)
|
||||
os.Setenv("TUN2SOCKS_LOG_LEVEL", "info")
|
||||
key := &engine.Key{
|
||||
|
||||
Reference in new issue
Block a user