server: use 127.0.0.1:0 if no address provided

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-07-17 01:57:39 +06:00
parent 57f6f23294
commit 7ece08896f

View File

@ -15,8 +15,8 @@ import (
var DefaultServer Server = NewServer() var DefaultServer Server = NewServer()
var ( var (
// DefaultAddress will be used if no address passed // DefaultAddress will be used if no address passed, use secure localhost
DefaultAddress = ":0" DefaultAddress = "127.0.0.1:0"
// DefaultName will be used if no name passed // DefaultName will be used if no name passed
DefaultName = "server" DefaultName = "server"
// DefaultVersion will be used if no version passed // DefaultVersion will be used if no version passed