aboutsummaryrefslogtreecommitdiff
path: root/rpc.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc.go')
-rw-r--r--rpc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc.go b/rpc.go
index 2d843b3..1bff95f 100644
--- a/rpc.go
+++ b/rpc.go
@@ -24,7 +24,7 @@ func DialRPC(server string) (*rpc.Client, error) {
// Add adds a new route
func (s *GoXY) Add(e Entry, _ *struct{}) error {
defer s.Server.Save()
- s.Server.Route[e.ServerName] = e
+ s.Server.Route[e.Host] = e
return s.Server.Restore()
}