mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
add support for tor (#369)
This commit is contained in:
parent
d43ce07b66
commit
b0f89062fa
10 changed files with 307 additions and 77 deletions
|
|
@ -143,6 +143,13 @@ func (client *Client) SetRegistered() {
|
|||
client.stateMutex.Unlock()
|
||||
}
|
||||
|
||||
func (client *Client) RawHostname() (result string) {
|
||||
client.stateMutex.Lock()
|
||||
result = client.rawHostname
|
||||
client.stateMutex.Unlock()
|
||||
return
|
||||
}
|
||||
|
||||
func (client *Client) AwayMessage() (result string) {
|
||||
client.stateMutex.RLock()
|
||||
result = client.awayMessage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue