diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2019-11-05 00:16:25 +0100 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-11-05 00:16:25 +0100 |
commit | 2f75863ba9bff2d2f3488b70e441b5eefc91dfd2 (patch) | |
tree | 5c54cbb3ceb47f18c9baf5c477607c212c3bcb06 /proxy/proxy.go | |
parent | 73733b0a8ab8612233c98f9828f5f563c69fc2b7 (diff) |
Begin development of next release 0.3.0
- update info in package ./version
- update to Go 1.13
- regenerate ./examples/binapi for latest VPP: 19.08.1-release
- clean code in proxy
- refactor Makefile
Change-Id: Ibf5c2682c2f4b3cbbea4aa1e35d3f02175d40a9b
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'proxy/proxy.go')
-rw-r--r-- | proxy/proxy.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proxy/proxy.go b/proxy/proxy.go index 33cf05f..6656ee5 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -83,10 +83,11 @@ func (p *Server) ListenAndServe(addr string) error { l, e := net.Listen("tcp", addr) if e != nil { - return fmt.Errorf("listen error:", e) + return fmt.Errorf("listen failed: %v", e) } defer l.Close() log.Printf("proxy serving on: %v", addr) + return http.Serve(l, nil) } |