From 49fc953db35b9fbaed7fb70ca274b48da2f37732 Mon Sep 17 00:00:00 2001 From: Emir Aganovic Date: Sun, 29 Jan 2023 14:37:10 +0100 Subject: [PATCH] Fix main in proxy using WithUserAgentIP --- example/proxysip/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/proxysip/main.go b/example/proxysip/main.go index 04793b6..55d9e2c 100644 --- a/example/proxysip/main.go +++ b/example/proxysip/main.go @@ -86,7 +86,7 @@ func setupSipProxy(proxydst string, ip string) *sipgo.Server { // Prepare all variables we need for our service host, port, _ := sip.ParseAddr(ip) ua, err := sipgo.NewUA( - sipgo.WithIP(ip), + sipgo.WithUserAgentIP(ip), ) if err != nil { log.Fatal().Err(err).Msg("Fail to setup user agent")