@@ -205,19 +205,19 @@ func (api *adminAPI) StartHTTP(host *string, port *int, cors *string, apis *stri
205205 }
206206 if cors != nil {
207207 config .CorsAllowedOrigins = nil
208- for _ , origin := range strings .Split (* cors , "," ) {
208+ for origin := range strings .SplitSeq (* cors , "," ) {
209209 config .CorsAllowedOrigins = append (config .CorsAllowedOrigins , strings .TrimSpace (origin ))
210210 }
211211 }
212212 if vhosts != nil {
213213 config .Vhosts = nil
214- for _ , vhost := range strings .Split (* host , "," ) {
214+ for vhost := range strings .SplitSeq (* host , "," ) {
215215 config .Vhosts = append (config .Vhosts , strings .TrimSpace (vhost ))
216216 }
217217 }
218218 if apis != nil {
219219 config .Modules = nil
220- for _ , m := range strings .Split (* apis , "," ) {
220+ for m := range strings .SplitSeq (* apis , "," ) {
221221 config .Modules = append (config .Modules , strings .TrimSpace (m ))
222222 }
223223 }
@@ -283,13 +283,13 @@ func (api *adminAPI) StartWS(host *string, port *int, allowedOrigins *string, ap
283283
284284 if apis != nil {
285285 config .Modules = nil
286- for _ , m := range strings .Split (* apis , "," ) {
286+ for m := range strings .SplitSeq (* apis , "," ) {
287287 config .Modules = append (config .Modules , strings .TrimSpace (m ))
288288 }
289289 }
290290 if allowedOrigins != nil {
291291 config .Origins = nil
292- for _ , origin := range strings .Split (* allowedOrigins , "," ) {
292+ for origin := range strings .SplitSeq (* allowedOrigins , "," ) {
293293 config .Origins = append (config .Origins , strings .TrimSpace (origin ))
294294 }
295295 }
0 commit comments