Skip to content

Commit

Permalink
Domain is important
Browse files Browse the repository at this point in the history
  • Loading branch information
jhotmann committed Oct 9, 2023
1 parent fa62a72 commit eb3555f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/provider/providers/mikrotik/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
)

type Provider struct {
domain string
ipVersion ipversion.IPVersion
routerIP string
username string
Expand All @@ -25,7 +26,7 @@ type Provider struct {
client *routeros.Client
}

func New(data json.RawMessage, _, _ string,
func New(data json.RawMessage, domain, _ string,
ipVersion ipversion.IPVersion) (p *Provider, err error) {
if ipVersion == ipversion.IP6 {
return nil, fmt.Errorf("%w", errors.ErrIPv6NotSupported)
Expand All @@ -41,6 +42,7 @@ func New(data json.RawMessage, _, _ string,
return nil, err
}
p = &Provider{
domain: domain,
ipVersion: ipVersion,
routerIP: extraSettings.RouterIP,
username: extraSettings.Username,
Expand Down Expand Up @@ -129,7 +131,7 @@ func (p *Provider) String() string {
}

func (p *Provider) Domain() string {
return "N/A"
return p.domain
}

func (p *Provider) Host() string {
Expand Down

0 comments on commit eb3555f

Please sign in to comment.