aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-13 10:02:45 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-13 10:02:45 +0200
commitc1f0f198fc31598c06bb3c06d38d10b12056e103 (patch)
treebc566e4cc5ade326c4e7b21fe69def4e85506833 /conf
parenttunnel: clearer GUID encoding scheme (diff)
downloadwireguard-windows-c1f0f198fc31598c06bb3c06d38d10b12056e103.tar.xz
wireguard-windows-c1f0f198fc31598c06bb3c06d38d10b12056e103.zip
conf: safely escape weird input characters
Diffstat (limited to 'conf')
-rw-r--r--conf/parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/parser.go b/conf/parser.go
index 88802688..3f64677b 100644
--- a/conf/parser.go
+++ b/conf/parser.go
@@ -23,7 +23,7 @@ type ParseError struct {
}
func (e *ParseError) Error() string {
- return fmt.Sprintf("%s: ā€˜%sā€™", e.why, e.offender)
+ return fmt.Sprintf("%s: %q", e.why, e.offender)
}
func parseIPCidr(s string) (ipcidr *IPCidr, err error) {