This commit is contained in:
Ubuntu
2013-01-16 09:20:24 +00:00

View File

@@ -265,8 +265,8 @@ func getRoute(host string) (*Route, error) {
rx2 := []byte(rx.(string))
route := Route{}
err = json.Unmarshal(rx2, &route)
if err == nil {
route = rx.(Route)
if err != nil {
return nil, err
}
return &route, err
}