noauth인 경우 ServiceCode를 000000000000으로 고정

This commit is contained in:
2023-06-26 17:34:30 +09:00
parent d3332f530f
commit cd126d2c59

View File

@ -209,6 +209,10 @@ func (sh *serviceDescription) prepare(mg *Maingate) error {
sh.ServiceCode = hex.EncodeToString(sh.Id[6:])
}
if *noauth {
sh.ServiceCode = "000000000000"
}
divsForUsers := make(map[string]*DivisionForUser)
for dn, div := range divs {
if div.State == DivisionState_Closed {