Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor field rename. Not asking for review

  • Loading branch information...
commit e25925d79ed3f1fc56c0aacbbd96b2f6d8c60910 1 parent 20a86a3
@nikhilm nikhilm authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/mozilla.org/push/server.go
View
7 src/mozilla.org/push/server.go
@@ -261,10 +261,13 @@ func handleHello(client *Client, f map[string]interface{}) {
gServerState.ConnectedClients[client.UAID] = client
- if f["interface"] != nil {
- m := f["interface"].(map[string]interface{})
+ if f["wakeup_hostport"] != nil {
+ m := f["wakeup_hostport"].(map[string]interface{})
client.Ip = m["ip"].(string)
client.Port = m["port"].(float64)
+ log.Println("Got hostport pair ", client.Ip, client.Port)
+ } else {
+ log.Println("No hostport ", f)
}
type HelloResponse struct {
Please sign in to comment.
Something went wrong with that request. Please try again.