diff options
| author | Russ White <russ@riw.us> | 2018-05-02 14:23:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-02 14:23:46 -0400 |
| commit | d71b0564c29fdd21c0461c04e616f3f0c82964e2 (patch) | |
| tree | 37df2b63cad1a959371edec61f39e2cd78c2505b /lib/command.c | |
| parent | ef2a2c2e098d2fba05dd834c484cec0783c5ff35 (diff) | |
| parent | d4f368e15af88f37503d3c32f6e8f29ebaba756d (diff) | |
Merge pull request #2154 from dslicenc/hostname-fix
lib: allow hostname to begin with a letter or number
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c index 0720762da0..2744061b5a 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1873,7 +1873,7 @@ DEFUN (config_hostname, { struct cmd_token *word = argv[1]; - if (!isalpha((int)word->arg[0])) { + if (!isalnum((int)word->arg[0])) { vty_out(vty, "Please specify string starting with alphabet\n"); return CMD_WARNING_CONFIG_FAILED; } |
