From cd126d2c59f98c5a13e1922d1dab257b8ee021bf Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 26 Jun 2023 17:34:30 +0900 Subject: [PATCH] =?UTF-8?q?noauth=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20ServiceC?= =?UTF-8?q?ode=EB=A5=BC=20000000000000=EC=9C=BC=EB=A1=9C=20=EA=B3=A0?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/service.go b/core/service.go index de2796b..559ca40 100644 --- a/core/service.go +++ b/core/service.go @@ -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 {