added ohttps dialer

This commit is contained in:
ginuerzh
2024-04-25 14:59:01 +08:00
parent 766ce7fdaa
commit 41b5e62207
9 changed files with 138 additions and 81 deletions

View File

@ -129,6 +129,10 @@ func (s *defaultService) Addr() net.Addr {
func (s *defaultService) Serve() error {
s.execCmds("post-up", s.options.postUp)
s.setState(StateReady)
s.status.addEvent(Event{
Time: time.Now(),
Message: fmt.Sprintf("service %s is listening on %s", s.name, s.listener.Addr()),
})
ctx, cancel := context.WithCancel(context.Background())
defer cancel()