Close implements the application.Application interface
()
| 190 | |
| 191 | // Close implements the application.Application interface |
| 192 | func (s *Instance) Close() (err error) { |
| 193 | for _, s := range s.endpoints { |
| 194 | if s != nil { |
| 195 | err = multierror.Append(err, s.Close()) |
| 196 | } |
| 197 | } |
| 198 | return err |
| 199 | } |
| 200 | |
| 201 | func (s *Instance) getListenerIPs(port *common.Port) ([]string, error) { |
| 202 | // Not configured on this port, set to empty which will lead to wildcard bind |