aboutsummaryrefslogtreecommitdiff
path: root/rpc.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-23 20:03:28 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-23 20:03:28 +0100
commit9509cf74f017cb5e4e64c59d0b30bd5602626c01 (patch)
tree2cdd72b396aa191f0def253617c52c1f0cda6dd1 /rpc.go
parent8941d819d53de276d56925877165310e9afd6648 (diff)
Fix cert issues
Diffstat (limited to 'rpc.go')
-rw-r--r--rpc.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/rpc.go b/rpc.go
index 589ca92..e7ab0d9 100644
--- a/rpc.go
+++ b/rpc.go
@@ -1,8 +1,6 @@
package main
import (
- "crypto/rsa"
- "encoding/gob"
"log"
"net/rpc"
)
@@ -10,7 +8,6 @@ import (
type GoXY struct{}
func init() {
- gob.Register(rsa.PrivateKey{})
rpc.Register(GoXY{})
}
@@ -30,7 +27,9 @@ func (GoXY) Del(e Entry, _ *struct{}) error {
return nil
}
-func (GoXY) List(_ struct{}, r *Route) error {
- *r = route
+func (GoXY) List(_ struct{}, r *[]Entry) error {
+ for _, v := range route {
+ *r = append(*r, v)
+ }
return nil
}