Explorar o código

Add a json tag to be backwards compatible with frontend "IsEE" check

gabrielseibel1 %!s(int64=2) %!d(string=hai) anos
pai
achega
0002f6f663
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/structs.go

+ 1 - 1
models/structs.go

@@ -238,7 +238,7 @@ type ServerConfig struct {
 	MQPassword  string       `yaml:"mq_password"`
 	Server      string       `yaml:"server"`
 	Broker      string       `yaml:"broker"`
-	IsPro       bool         `yaml:"is_pro"`
+	IsPro       bool         `yaml:"is_pro" json:"IsEE"`
 	StunPort    int          `yaml:"stun_port"`
 	StunList    []StunServer `yaml:"stun_list"`
 	TrafficKey  []byte       `yaml:"traffickey"`