diff --git a/client.go b/client.go index 6d7ee41..8a9bf2b 100644 --- a/client.go +++ b/client.go @@ -103,16 +103,6 @@ func NewClient(ua *UserAgent, options ...ClientOption) (*Client, error) { } } - if c.host == "" { - // IF we remove this, default would be IPV6 on new system - // We can go on net libraries and forcing this with udp4, tcp4 - h, _, err := sip.ResolveInterfacesIP("ip4", nil) - if err != nil { - return nil, err - } - c.host = h.String() - } - return c, nil } @@ -121,11 +111,6 @@ func (c *Client) Close() error { return nil } -// Deprecated use Hostname -func (c *Client) GetHostname() string { - return c.host -} - // Hostname returns default hostname or what is set WithHostname option func (c *Client) Hostname() string { return c.host