aboutsummaryrefslogtreecommitdiff
path: root/plugin/transfer/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/transfer/setup.go')
-rw-r--r--plugin/transfer/setup.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugin/transfer/setup.go b/plugin/transfer/setup.go
index f194bd2ec..66dd61fe9 100644
--- a/plugin/transfer/setup.go
+++ b/plugin/transfer/setup.go
@@ -3,7 +3,7 @@ package transfer
import (
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
- parsepkg "github.com/coredns/coredns/plugin/pkg/parse"
+ "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
@@ -17,7 +17,7 @@ func init() {
}
func setup(c *caddy.Controller) error {
- t, err := parse(c)
+ t, err := parseTransfer(c)
if err != nil {
return plugin.Error("transfer", err)
@@ -44,8 +44,7 @@ func setup(c *caddy.Controller) error {
return nil
}
-func parse(c *caddy.Controller) (*Transfer, error) {
-
+func parseTransfer(c *caddy.Controller) (*Transfer, error) {
t := &Transfer{}
for c.Next() {
x := &xfr{}
@@ -83,14 +82,14 @@ func parse(c *caddy.Controller) (*Transfer, error) {
x.to = append(x.to, host)
continue
}
- normalized, err := parsepkg.HostPort(host, transport.Port)
+ normalized, err := parse.HostPort(host, transport.Port)
if err != nil {
return nil, err
}
x.to = append(x.to, normalized)
}
default:
- return nil, plugin.Error("transfer", c.Errf("unknown property '%s'", c.Val()))
+ return nil, plugin.Error("transfer", c.Errf("unknown property %q", c.Val()))
}
}
if len(x.to) == 0 {
rred/pg'>jarred/pg Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/linker.lds (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-04-05In Documentation, move --watch before the script name (#2569)Gravatar Lawlzer 1-4/+5
2023-04-05fix `deepEquals` with array holes and accessors (#2557)Gravatar Dylan Conway 2-10/+249
2023-04-05fix: modules to have null prototype (#2561)Gravatar hiroki osame 2-2/+9
2023-04-04:clock1: :clock2: :clock3:Gravatar Jarred Sumner 1-1/+1
2023-04-04Implement `import.meta.main` (#2556)Gravatar Jarred Sumner 10-8/+89
2023-04-04Dylan/fix some failing tests (#2544)Gravatar Jarred Sumner 10-29/+72
2023-04-04Add npm benchmark (#2555)Gravatar Colin McDonnell 13-1/+271
2023-04-03Use absolute paths morebun-v0.5.9Gravatar Jarred Sumner 2-6/+11
2023-04-03Fix test failureGravatar Jarred Sumner 1-15/+18