5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 15:20:30 +00:00

Update default AdminListen to URI format

This commit is contained in:
Neil Alexander 2018-07-07 11:28:50 +01:00
parent 047b7d95a1
commit 171e1e7823
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -53,7 +53,7 @@ func generateConfig(isAutoconf bool) *nodeConfig {
r1 := rand.New(rand.NewSource(time.Now().UnixNano()))
cfg.Listen = fmt.Sprintf("[::]:%d", r1.Intn(65534-32768)+32768)
}
cfg.AdminListen = "localhost:9001"
cfg.AdminListen = "tcp://localhost:9001"
cfg.EncryptionPublicKey = hex.EncodeToString(bpub[:])
cfg.EncryptionPrivateKey = hex.EncodeToString(bpriv[:])
cfg.SigningPublicKey = hex.EncodeToString(spub[:])