projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a0be1a
)
enable 192 for isdev?
author
Alan
<alan@roojs.com>
Thu, 13 Jan 2022 02:56:42 +0000
(10:56 +0800)
committer
Alan
<alan@roojs.com>
Thu, 13 Jan 2022 02:56:42 +0000
(10:56 +0800)
Pman.php
patch
|
blob
|
history
diff --git
a/Pman.php
b/Pman.php
index
a2821d4
..
2491e92
100644
(file)
--- a/
Pman.php
+++ b/
Pman.php
@@
-128,6
+128,8
@@
class Pman extends HTML_FlexyFramework_Page
(($_SERVER['SERVER_ADDR'] == '127.0.0.1') && ($_SERVER['REMOTE_ADDR'] == '127.0.0.1'))
||
(($_SERVER['SERVER_ADDR'] == '::1') && ($_SERVER['REMOTE_ADDR'] == '::1'))
+ ||
+ (preg_match('/^192\.168/', $_SERVER['SERVER_ADDR']) && $_SERVER['SERVER_ADDR'] == $_SERVER['HTTP_HOST'])
)
)
||