forked from External/ergo
disallow resume from tor to non-tor
This commit is contained in:
parent
5f26023d88
commit
18169cbedf
1 changed files with 5 additions and 0 deletions
|
|
@ -418,6 +418,11 @@ func (client *Client) tryResume() (success bool) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if oldClient.isTor != client.isTor {
|
||||||
|
client.Send(nil, server.name, "RESUME", "ERR", client.t("Cannot resume connection from Tor to non-Tor or vice versa"))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
err := server.clients.Resume(client, oldClient)
|
err := server.clients.Resume(client, oldClient)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
client.Send(nil, server.name, "RESUME", "ERR", client.t("Cannot resume connection"))
|
client.Send(nil, server.name, "RESUME", "ERR", client.t("Cannot resume connection"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue