mirror of
https://github.com/wahyd4/kt-connect.git
synced 2026-08-17 01:15:56 +10:00
21 lines
315 B
Go
21 lines
315 B
Go
package server
|
|
|
|
import (
|
|
"github.com/alibaba/kt-connect/pkg/proxy/daemon"
|
|
"github.com/rs/zerolog/log"
|
|
)
|
|
|
|
// Run start kt proxy
|
|
func Run() (err error) {
|
|
log.Info().Msg("Start kt connect proxy")
|
|
err = daemon.ServerSSH()
|
|
if err != nil {
|
|
return
|
|
}
|
|
err = daemon.ServeDNS()
|
|
if err != nil {
|
|
return
|
|
}
|
|
return
|
|
}
|