github.com/kotalco/kotal@v0.3.0/controllers/shared/host.go (about)

     1  package shared
     2  
     3  // Host returns localhost if toggle is not enabled
     4  // otherwise returns the wildcard address
     5  func Host(toggle bool) string {
     6  	if toggle {
     7  		return "0.0.0.0"
     8  	} else {
     9  		return "127.0.0.1"
    10  	}
    11  }