~emersion/ident-proxy

720bedd35d2bb79aae3ceeadca51e915ff03c3cd — Simon Ser 1 year, 8 months ago af48d45
Add -listen flag
1 files changed, 2 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +2 -1
@@ 11,8 11,10 @@ import (
)

func main() {
	var listenAddr string
	var debug bool
	flag.BoolVar(&debug, "debug", false, "enable debug logs")
	flag.StringVar(&listenAddr, "listen", ":113", "listening address")
	flag.Parse()

	var backends []dialFunc


@@ 53,7 55,6 @@ func main() {
		os.Exit(1)
	}

	listenAddr := ":113"
	ln, err := net.Listen("tcp", listenAddr)
	if err != nil {
		log.Fatalf("failed to listen to %q: %v", listenAddr, err)