~whereswaldon/sprout-go

1c2e94107f0c3fb2fcb0002638cdb30e62a5074e — Chris Waldon 7 months ago afa31ea
relay: Rename address variable for clarity
1 files changed, 4 insertions(+), 3 deletions(-)

M cmd/relay/main.go
M cmd/relay/main.go => cmd/relay/main.go +4 -3
@@ 53,10 53,11 @@ and will establish Sprout connections to all addresses provided as arguments.
	}
	tlsConfig.BuildNameToCertificate()

	address := fmt.Sprintf("%s:%d", *tlsIP, *tlsPort)
	listener, err := tls.Listen("tcp", address, tlsConfig)
	listenAddress := fmt.Sprintf("%s:%d", *tlsIP, *tlsPort)
	log.Printf("Listening on %s", listenAddress)
	listener, err := tls.Listen("tcp", listenAddress, tlsConfig)
	if err != nil {
		log.Fatalf("Failed to start TLS listener on address %s: %v", address, err)
		log.Fatalf("Failed to start TLS listener on address %s: %v", listenAddress, err)
	}
	done := make(chan struct{})