4
									
								
								http.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								http.go
									
									
									
									
									
								
							| @@ -252,6 +252,10 @@ func (h *httpServer) Start() error { | |||||||
| 	hd := h.hd | 	hd := h.hd | ||||||
| 	h.RUnlock() | 	h.RUnlock() | ||||||
|  |  | ||||||
|  | 	if hd == nil { | ||||||
|  | 		return errors.New("Server required http.Handler") | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	ln, err := net.Listen("tcp", config.Address) | 	ln, err := net.Listen("tcp", config.Address) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return err | 		return err | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user