mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-09 12:58:40 +00:00
Core: Export the running bool (#4775)
This commit is contained in:
parent
1f49bfc6a5
commit
d0c80fc80d
1 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,11 @@ type Instance struct {
|
|||
ctx context.Context
|
||||
}
|
||||
|
||||
// Instance state
|
||||
func (server *Instance) IsRunning() bool {
|
||||
return server.running
|
||||
}
|
||||
|
||||
func AddInboundHandler(server *Instance, config *InboundHandlerConfig) error {
|
||||
inboundManager := server.GetFeature(inbound.ManagerType()).(inbound.Manager)
|
||||
rawHandler, err := CreateObject(server, config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue