View | Details | Raw Unified | Return to bug 202425
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	syncthing-cli
4
PORTNAME=	syncthing-cli
5
PORTVERSION=	0.1.0.2015070301
5
PORTVERSION=	0.1.0.2015070301
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	net
7
CATEGORIES=	net
8
8
9
MAINTAINER=	swills@FreeBSD.org
9
MAINTAINER=	swills@FreeBSD.org
(-)files/patch-utils.go (+11 lines)
Line 0 Link Here
1
--- utils.go
2
+++ utils.go
3
@@ -146,7 +146,7 @@ func validAddress(input string) {
4
 	if len(tokens) != 2 {
5
 		die(input + " is not a valid value for an address\nExpected format <ip or hostname>:<port>")
6
 	}
7
-	matched, err := regexp.MatchString("^[a-zA-Z0-9]+([a-zA-Z0-9.]+[a-zA-Z0-9]+)?$", tokens[0])
8
+	matched, err := regexp.MatchString("^[a-zA-Z0-9]+([-a-zA-Z0-9.]+[-a-zA-Z0-9]+)?$", tokens[0])
9
 	die(err)
10
 	if !matched {
11
 		die(input + " is not a valid value for an address\nExpected format <ip or hostname>:<port>")

Return to bug 202425