diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-02-18 18:25:29 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-02-18 18:25:29 -0500 |
commit | f622b34f586d9c5d091c975291e5c932af44949a (patch) | |
tree | 91c3816ebcebdccc2a781ef784a1c667a9abae03 | |
parent | 7919c1de41c62ab5971435ee9fcfcfff334a89c4 (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?
-rwxr-xr-x | src/monkeysphere-host | 2 |
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>], |