summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-02-18 18:25:29 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-02-18 18:25:29 -0500
commitf622b34f586d9c5d091c975291e5c932af44949a (patch)
tree91c3816ebcebdccc2a781ef784a1c667a9abae03 /src/monkeysphere-host
parent7919c1de41c62ab5971435ee9fcfcfff334a89c4 (diff)
allow service names to start with a number (synchronizing with the check in get_port_for_service from common). i know of no services named like that, but why be fussy?
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index d89febb..12e7bad 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -147,7 +147,7 @@ Service names should use fully-qualified domain names (FQDN), but the
domain name you chose appears to only have the local part. For
example: don't use 'ssh://foo' ; use 'ssh://foo.example.com' instead."
- [[ "$name" =~ ^[a-z]([a-z0-9-]*[a-z0-9])?://[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.|((\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+))(:[1-9][0-9]{0,4})?$ ]] || \
+ [[ "$name" =~ ^[a-z0-9]([a-z0-9-]*[a-z0-9])?://[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.|((\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+))(:[1-9][0-9]{0,4})?$ ]] || \
failure "Not a valid service name: '$name'
Service names look like <scheme>://full.example.com[:<portnumber>],