Browse Source

Expose HTTP listener internally

pull/265/head
Book Moons 4 years ago
parent
commit
caea9330a6
No known key found for this signature in database GPG Key ID: 29D2A92F3145E7A7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      server/server.go

+ 2
- 0
server/server.go View File

@@ -280,6 +280,7 @@ type Server struct {
ProfileListenerString string

profileListener *http.Server
httpListener *http.Server

Certificate string

@@ -436,6 +437,7 @@ func (s *Server) Run() {
Addr: s.ListenerString,
Handler: h,
}
s.httpListener = srvr

listening = true
s.logger.Printf("listening on port: %v\n", s.ListenerString)


Loading…
Cancel
Save