@@ -261,7 +261,7 @@ public async void Start()
261261 var statusNtfyList = secntfyTokenList . Count == 0 ? "empty" : "filled" ;
262262 Console . WriteLine ( $ "SecNtfy Token list is: { statusNtfyList } ") ;
263263 Console . WriteLine (
264- $ "If one or more lists are empty please check the environment variable! GOTIFY_SERVERS or GOTIFY_CLIENTS or NTFY_TOKENS ") ;
264+ $ "If one or more lists are empty please check the environment variable! GOTIFY_URLS or GOTIFY_CLIENT_TOKENS or SECNTFY_TOKENS ") ;
265265 Console . WriteLine (
266266 $ "If all lists are empty do nothing, you will configure the gotify server over the iGotify app.") ;
267267 }
@@ -271,15 +271,15 @@ public async void Start()
271271 StartConnection ( userList , secntfyUrl ) ;
272272 }
273273
274- private void StartConnection ( List < Users > userList , string secntfyUrl )
274+ private async void StartConnection ( List < Users > userList , string secntfyUrl )
275275 {
276276 foreach ( var user in userList )
277277 {
278278 string isGotifyAvailable ;
279279 string isSecNtfyAvailable ;
280280 try
281281 {
282- isGotifyAvailable = SecNtfy . CheckIfUrlReachable ( user . GotifyUrl ) ? "yes" : "no" ;
282+ isGotifyAvailable = await SecNtfy . CheckIfUrlReachable ( user . GotifyUrl ) ? "yes" : "no" ;
283283
284284 if ( isGotifyAvailable == "no" )
285285 {
@@ -296,7 +296,7 @@ private void StartConnection(List<Users> userList, string secntfyUrl)
296296
297297 try
298298 {
299- bool isSecNtfyAvailableBool = SecNtfy . CheckIfUrlReachable ( secntfyUrl ) ;
299+ bool isSecNtfyAvailableBool = await SecNtfy . CheckIfUrlReachable ( secntfyUrl ) ;
300300 isSecNtfyAvailable = isSecNtfyAvailableBool ? "yes" : "no" ;
301301
302302 if ( ! isSecNtfyAvailableBool )
0 commit comments