mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-11-30 16:38:13 +00:00
19 lines
374 B
Go
19 lines
374 B
Go
//go:build !flavor_tiny && !flavor_ntr
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/nxtrace/NTrace-core/server"
|
|
)
|
|
|
|
func runDeploy(opts deployRunOptions, onReady func(net.Addr)) error {
|
|
return server.RunWithOptions(server.Options{
|
|
ListenAddr: opts.ListenAddr,
|
|
EnableMCP: opts.EnableMCP,
|
|
AuthEnabled: opts.AuthEnabled,
|
|
DeployToken: opts.DeployToken,
|
|
}, onReady)
|
|
}
|