mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
minor
Former-commit-id: 0bc9c92c519edda9e04be8481e16fd2fdcfc74c0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user