fix router example
This commit is contained in:
parent
96a9cabbf6
commit
d49a1cb23b
@ -25,12 +25,6 @@ func (s *server) GetRoute(ctx context.Context, in *proto.GetRouteRequest) (*prot
|
|||||||
return reply, nil
|
return reply, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *server) SetRoute(ctx context.Context, in *proto.SetRouteRequest) (*proto.SetRouteReply, error) {
|
|
||||||
reply := &proto.SetRouteReply{}
|
|
||||||
log.Printf("router set: %s -> %s", in.GetNet(), in.GetGateway())
|
|
||||||
return reply, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
lis, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))
|
lis, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))
|
||||||
|
Loading…
Reference in New Issue
Block a user