rename getULA to getULAnet

This commit is contained in:
Callan Bryant 2020-10-25 10:06:25 +00:00
parent af3e1b2ea9
commit 64a73d18ed
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA
2 changed files with 5 additions and 5 deletions

4
add.go
View File

@ -63,7 +63,7 @@ func Add() {
publicKey := privateKey.PublicKey()
IP := conf.MustAllocateIP(conf.Network.IPNet)
//IP6 := conf.MustAllocateIP(conf.Network6.IPNet)
IP6 := conf.MustAllocateIP(conf.Network6.IPNet)
peer := PeerConfig{
Owner: owner,
@ -74,7 +74,7 @@ func Add() {
PrivateKey: privateKey, // omitted from server config JSON!
PresharedKey: GenerateJSONKey(),
IP: IP,
//IP6: IP6,
IP6: IP6,
Networks: []JSONIPNet{},
}

View File

@ -22,7 +22,7 @@ func Init() {
PrivateKey: GenerateJSONPrivateKey(),
ListenPort: DEFAULT_LISTEN_PORT,
Network: getPrivateNet(),
Network6: getULA(),
Network6: getULANet(),
Peers: []PeerConfig{},
Domain: "dsnet",
ReportFile: DEFAULT_REPORT_FILE,
@ -32,7 +32,7 @@ func Init() {
}
conf.IP = conf.MustAllocateIP(conf.Network.IPNet)
//conf.IP6 = conf.MustAllocateIP(conf.Network6.IPNet)
conf.IP6 = conf.MustAllocateIP(conf.Network6.IPNet)
// DNS not set by default
//conf.DNS = IP
@ -56,7 +56,7 @@ func getPrivateNet() JSONIPNet {
}
}
func getULA() JSONIPNet {
func getULANet() JSONIPNet {
rbs := make([]byte, 5)
rand.Seed(time.Now().UTC().UnixNano())
rand.Read(rbs)