V0.1.7 (#5)
* save url when connected and allow toggling connection on app start (#2) * mask ip in logs, reduce keep-alive logs frequency * update comment about debug link, migrate prefs to ktx * auto-connect for telemost * fix ice ipv6 resolving * auto-connect for vk * refactor hooks names * regenerate android resources * remove stale telemost dc * kick disconnected user from vk, refactor relay on mobile client, prevent double hook injection * refactor constants * set low importance for notification to avoid signals * stop vpn/relay at app destroy, reset state at vpn disconnect * prevent vk session close at video tunnel * kick disconnected user from vk, refactor relay on mobile client, prevent double hook injection * multiple tabs/calls, write android logs in file * update ux, fix fd lifecycle in tun2socks * increment release version --------- Co-authored-by: HukuToc2288 <hukutoc2288@yandex.ru> Co-authored-by: kulikov <user@Mac.lan>
This commit is contained in:
1 parent
e8da07179a
commit
84da73c324
52 files changed
+1510
-479
No files matched your search
@@ -69,7 +69,7 @@ func (c *TelemostClient) handleMessage(raw []byte) {
|
||||
var ip string
|
||||
json.Unmarshal(msg.Data, &ip)
|
||||
c.LocalIP = ip
|
||||
c.logFn("telemost: local IP set to %s", ip)
|
||||
c.logFn("telemost: local IP set to %s", maskAddr(ip))
|
||||
c.ipOnce.Do(func() { close(c.ipReady) })
|
||||
case "ice-servers":
|
||||
go c.handleICEServers(msg.Data, role)
|
||||
@@ -118,6 +118,7 @@ func (c *TelemostClient) handleICEServers(data json.RawMessage, role string) {
|
||||
}
|
||||
}
|
||||
|
||||
iceLogFn = c.logFn
|
||||
iceServers, err := ParseICEServers(data)
|
||||
if err != nil {
|
||||
return
|
||||
@@ -167,7 +168,7 @@ func (c *TelemostClient) handleICEServers(data json.RawMessage, role string) {
|
||||
c.logFn("telemost [%s]: ICE gathering complete", role)
|
||||
return
|
||||
}
|
||||
c.logFn("telemost [%s]: ICE candidate: type=%s protocol=%s address=%s", role, cand.Typ.String(), cand.Protocol.String(), cand.Address)
|
||||
c.logFn("telemost [%s]: ICE candidate: type=%s protocol=%s address=%s", role, cand.Typ.String(), cand.Protocol.String(), maskAddr(cand.Address))
|
||||
c.SendToHookWithRole("ice-candidate", cand.ToJSON(), role)
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user