Преглед изворни кода

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

gabrielseibel1 пре 2 година
родитељ
комит
0002f6f663
1 измењених фајлова са 1 додато и 1 уклоњено
  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"`