diff --git a/register.go b/register.go index bb32bac..e7bb74b 100644 --- a/register.go +++ b/register.go @@ -13,8 +13,8 @@ func register(err error, client *nex.Client, callID uint32, stationUrls []*nex.S address := client.Address().IP.String() port := strconv.Itoa(client.Address().Port) - localStation.SetAddress(&address) - localStation.SetPort(&port) + localStation.SetAddress(address) + localStation.SetPort(port) localStationURL := localStation.EncodeToString() diff --git a/register_ex.go b/register_ex.go index ea07af1..db3fe96 100644 --- a/register_ex.go +++ b/register_ex.go @@ -15,8 +15,8 @@ func registerEx(err error, client *nex.Client, callID uint32, stationUrls []*nex address := client.Address().IP.String() port := strconv.Itoa(client.Address().Port) - localStation.SetAddress(&address) - localStation.SetPort(&port) + localStation.SetAddress(address) + localStation.SetPort(port) localStationURL := localStation.EncodeToString()