This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
XRay
mirror of
https://github.com/aaronpk/XRay.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
77
Wiki
Activity
Browse Source
sometimes it returns "request failed"
file_get_contents is dumb. I hope this isn't a permanent solution.
pull/39/head
Aaron Parecki
8 years ago
parent
2924f35e0d
commit
e09ee58d8b
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lib/HTTPStream.php
+ 1
- 1
lib/HTTPStream.php
View File
@ -48,7 +48,7 @@ class HTTPStream {
$description
=
str_replace
(
'php_network_getaddresses: '
,
''
,
$description
);
}
if
(
preg_match
(
'/timed out/'
,
$description
))
{
if
(
preg_match
(
'/timed out
|request failed
/'
,
$description
))
{
$code
=
'timeout'
;
}
Write
Preview
Loading…
Cancel
Save