1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00
Former-commit-id: 0bc9c92c519edda9e04be8481e16fd2fdcfc74c0
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-25 13:04:36 +03:00
parent 3fa022738b
commit 836e641229
10 changed files with 151 additions and 3 deletions

View File

@@ -626,8 +626,12 @@ func (tc *TunnelingConfiguration) isEnabled() bool {
func (tc *TunnelingConfiguration) isNgrokRunning() bool {
resp, err := http.Get(tc.WebInterface)
if err != nil {
return false
}
resp.Body.Close()
return err == nil
return true
}
// https://ngrok.com/docs