🐛 Bug fixes on server register

This commit is contained in:
2024-06-22 21:17:31 +08:00
parent 93b924d0a4
commit f327a27714
3 changed files with 4 additions and 3 deletions

View File

@ -18,11 +18,10 @@ func Register() error {
return err
}
httpBind := strings.SplitN(viper.GetString("bind"), ":", 2)
grpcBind := strings.SplitN(viper.GetString("grpc_bind"), ":", 2)
outboundIp, _ := GetOutboundIP()
port, _ := strconv.Atoi(httpBind[1])
port, _ := strconv.Atoi(grpcBind[1])
registration := new(api.AgentServiceRegistration)
registration.ID = viper.GetString("id")