Skip to content

Commit 5993225

Browse files
author
DJCHICKEN4
authored
Update stats.py
1 parent 70c5896 commit 5993225

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/stats.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ def home_get_dat():
7272
o = rows[0][0]
7373

7474
injectCode = ''
75-
if trape.nGrokUrl != '':
76-
server_code = str(trape.nGrokUrl)
75+
if trape.nGrokUrl != '':
76+
injectCode = str(trape.nGrokUrl) + '/' + str(trape.injectURL)
7777
else:
78-
injectCode = 'http://' + str(trape.localIp) + ':' + str(trape.app_port) + '/' + str(trape.injectURL)
78+
injectCode = str(trape.localIp) + ':' + str(trape.app_port) + '/' + str(trape.injectURL)
7979

8080
return json.dumps({'status' : 'OK', 'd' : d, 'n' : n, 'c' : c, 's' : s, 'o' : o, "ic" : injectCode})
8181

0 commit comments

Comments
 (0)