Skip to content

Commit c4aa406

Browse files
Update xray.go Api
Update xray.go Api
1 parent 20d70a9 commit c4aa406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xray/xray.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func RunXrayFromJSON(datDir string, configJSON string) (err error) {
9393

9494
// Get Xray State
9595
func GetXrayState() bool {
96-
return coreServer.IsRunning()
96+
return coreServer != nil && coreServer.IsRunning()
9797
}
9898

9999
// Stop Xray instance.

0 commit comments

Comments
 (0)