1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-28 08:39:13 +02:00

fix: use default server url

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ 2022-04-23 23:52:32 +08:00
parent 7bd80b076c
commit 4d485b3ea3

View File

@ -69,7 +69,7 @@ func NewWithServers(deviceKey string, serverURLs ...string) *Service {
client: defaultHTTPClient(),
}
if len(serverURLs) > 0 {
if len(serverURLs) == 0 {
serverURLs = append(serverURLs, DefaultServerURL)
}