Skip to content

Commit 5c948d9

Browse files
authored
Merge pull request #100 from codewithtamim/fix/core-state
Update xray.go Api
2 parents 20d70a9 + c4aa406 commit 5c948d9

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)