v0.2.1 (#53)
* ios proxy app, tune vp8 tunnel * refactor go modules, move headless joiner android to a go captcha * restore emojis in vk bot keyboard * headless support in vk bot * remove telemost dc hooks, update cretor-app ui and bot * remove telemost support from go code, add fallback to video if mode == dc in joiners * fix headless creators in windows * update vk call creation autoclick * force desktop useragent for creator app * kick disconnected user in headless vk creator immediately when connection is lost * update README.md * update SETUP.md * update release version * add fallback for link creation in vk bot
This commit is contained in:
1 parent
9e1f2a98d9
commit
1b2d6bc5d3
89 files changed
+3503
-2158
No files matched your search
@@ -258,6 +258,40 @@ func (rb *RelayBridge) handleSOCKS(conn net.Conn) {
|
||||
return
|
||||
}
|
||||
|
||||
hostOnly, _, _ := net.SplitHostPort(host)
|
||||
if ip := net.ParseIP(hostOnly); ip != nil && ip.IsUnspecified() {
|
||||
conn.Write(common.ConnFail)
|
||||
conn.Close()
|
||||
return
|
||||
}
|
||||
// Dial local/private addresses directly instead of tunneling to the creator,
|
||||
// which cannot reach the joiner's local network. Disabled for now until
|
||||
// there is a real use case for local network access through the proxy. So idk if
|
||||
// this is a bug or a feature
|
||||
// if ip := net.ParseIP(hostOnly); ip != nil && !ip.IsGlobalUnicast() {
|
||||
// rb.logFn("relay: SOCKS local dial %s", common.MaskAddr(host))
|
||||
// target, dialErr := net.DialTimeout("tcp", host, 10*time.Second)
|
||||
// if dialErr != nil {
|
||||
// rb.logFn("relay: SOCKS local dial failed: %s", common.MaskError(dialErr))
|
||||
// conn.Write(common.ConnFail)
|
||||
// conn.Close()
|
||||
// return
|
||||
// }
|
||||
// conn.Write(common.OK)
|
||||
// go func() {
|
||||
// defer target.Close()
|
||||
// defer conn.Close()
|
||||
// done := make(chan struct{})
|
||||
// go func() {
|
||||
// io.Copy(target, conn)
|
||||
// close(done)
|
||||
// }()
|
||||
// io.Copy(conn, target)
|
||||
// <-done
|
||||
// }()
|
||||
// return
|
||||
// }
|
||||
|
||||
id := rb.nextID.Add(1)
|
||||
sc := &socksConn{id: id, conn: conn, rb: rb, rdy: make(chan error, 1)}
|
||||
rb.conns.Store(id, sc)
|
||||
|
||||
Reference in new issue
Block a user