()
| 563 | } |
| 564 | |
| 565 | func (s *Server) configureAddress() { |
| 566 | if strings.TrimSpace(s.host) == "" { |
| 567 | s.host = strings.TrimSpace(s.config.HTTP.Host) |
| 568 | } |
| 569 | if s.port <= 0 { |
| 570 | s.port = s.config.HTTP.Port |
| 571 | } |
| 572 | } |
| 573 | |
| 574 | func (s *Server) ensureEngine() { |
| 575 | if s.engine != nil { |