This commit is contained in:
aozhiwei 2024-08-30 17:40:10 +08:00
parent a44aaa1cba
commit 943d9fe141

View File

@ -204,7 +204,7 @@ func (this *sApiForward) LoadDownStreams() error {
port := q5.ToInt32(ds.GetByName("apigate_port"))
enable := q5.ToInt32(ds.GetByName("enable"))
if enable != 0 {
downSteam := *q5.NewSliceElement(&downStreams)
downSteam := q5.NewSliceElement(&downStreams)
downSteam.Host = host
downSteam.Port = port
downSteam.Url = fmt.Sprintf("http://%s:%d", downSteam.Host, downSteam.Port)