Skip to content

Commit

Permalink
chore: remove unused config vars
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Feb 15, 2024
1 parent 4cfcfb1 commit 2fc6665
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ type Config struct {
OTLPEndpoint string
InitialAdminUserPassword string
CORSHosts []string
OtherSupernodes []string
TrustedProxies []string
HIBPAPIKey string
ServerName string
Supernode bool
Masquerade bool
WireguardTapAddress string
NodeIP string
SupernodeZone string
strSessionSecret string
SessionSecret []byte
VTUNStartingAddress string
Expand Down Expand Up @@ -85,7 +83,6 @@ func loadConfig() Config {
Masquerade: os.Getenv("MASQUERADE") != "",
WireguardTapAddress: os.Getenv("WIREGUARD_TAP_ADDRESS"),
NodeIP: os.Getenv("NODE_IP"),
SupernodeZone: os.Getenv("SUPERNODE_ZONE"),
strSessionSecret: os.Getenv("SESSION_SECRET"),
VTUNStartingAddress: os.Getenv("VTUN_STARTING_ADDRESS"),
WireguardStartingAddress: os.Getenv("WIREGUARD_STARTING_ADDRESS"),
Expand Down Expand Up @@ -114,10 +111,6 @@ func loadConfig() Config {
panic("VTUN starting address is not a valid IP address")
}

if tmpConfig.Supernode && tmpConfig.SupernodeZone == "" {
panic("Supernode zone not set")
}

if tmpConfig.InitialAdminUserPassword == "" {
fmt.Println("Initial admin user password not set, using auto-generated password")
const randLen = 15
Expand Down

0 comments on commit 2fc6665

Please sign in to comment.