mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Simlify splitting string into non-empty entries.
This commit is contained in:
parent
3d0db426fa
commit
210aec62db
14 changed files with 51 additions and 89 deletions
|
|
@ -35,7 +35,6 @@ import (
|
|||
"os"
|
||||
"os/signal"
|
||||
"runtime"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
|
@ -542,7 +541,7 @@ func main() {
|
|||
|
||||
urls := make([]url.URL, 0)
|
||||
urlstrings := make([]string, 0)
|
||||
for host := range strings.SplitSeq(*addr, ",") {
|
||||
for host := range signaling.SplitEntries(*addr, ",") {
|
||||
u := url.URL{
|
||||
Scheme: "ws",
|
||||
Host: host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue