mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 07:59:58 +00:00
TUN-890: To support free tunnels, hostname can now be ""
This commit is contained in:

committed by
Areg Harutyunyan

parent
4f04f35bd1
commit
d0bc4d0d96
@@ -10,7 +10,7 @@ import (
|
||||
func TestValidateHostname(t *testing.T) {
|
||||
var inputHostname string
|
||||
hostname, err := ValidateHostname(inputHostname)
|
||||
assert.Equal(t, err, fmt.Errorf("Hostname should not be empty"))
|
||||
assert.Equal(t, err, nil)
|
||||
assert.Empty(t, hostname)
|
||||
|
||||
inputHostname = "hello.example.com"
|
||||
|
Reference in New Issue
Block a user