Skip to content

Commit

Permalink
chore(pkg): dialer string returns connection type only, i.e. https
Browse files Browse the repository at this point in the history
…instead of `dns over https`
  • Loading branch information
qdm12 committed Nov 3, 2024
1 parent 87b1fef commit b2cf2c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/doh/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func New(settings Settings) (dial *Dialer, err error) {
}

func (d *Dialer) String() string {
return "dns over https"
return "https"
}

func (d *Dialer) Dial(ctx context.Context, _, _ string) (
Expand Down
2 changes: 1 addition & 1 deletion pkg/dot/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func New(settings Settings) (dial *Dialer, err error) {
}

func (d *Dialer) String() string {
return "dns over tls"
return "tls"
}

func (d *Dialer) Dial(ctx context.Context, _, _ string) (
Expand Down
2 changes: 1 addition & 1 deletion pkg/plain/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func New(settings Settings) (dial *Dialer, err error) {
}

func (d *Dialer) String() string {
return "dns over plaintext"
return "plaintext"
}

func (d *Dialer) Dial(ctx context.Context, network, _ string) (
Expand Down

0 comments on commit b2cf2c0

Please sign in to comment.