mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-10 23:24:32 +08:00
Merge pull request #2537 from gravitl/release-v0.20.6
Release v0.20.6 Hotfix
This commit is contained in:
commit
6937134d14
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ import (
|
|||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
|
@ -201,7 +200,7 @@ func convertLegacyNode(legacy models.LegacyNode, hostID uuid.UUID) models.Node {
|
|||
node.DNSOn = models.ParseBool(legacy.DNSOn)
|
||||
node.PersistentKeepalive = time.Duration(int64(time.Second) * int64(legacy.PersistentKeepalive))
|
||||
node.LastModified = time.Now()
|
||||
node.ExpirationDateTime, _ = time.Parse(strconv.Itoa(int(legacy.ExpirationDateTime)), "0")
|
||||
node.ExpirationDateTime = time.Unix(legacy.ExpirationDateTime, 0)
|
||||
node.EgressGatewayNatEnabled = models.ParseBool(legacy.EgressGatewayNatEnabled)
|
||||
node.EgressGatewayRequest = legacy.EgressGatewayRequest
|
||||
node.IngressGatewayRange = legacy.IngressGatewayRange
|
||||
|
|
Loading…
Add table
Reference in a new issue