mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-25 15:38:56 +00:00
Only expose ssl feature to our IP under chrome
To allow us to see and test the old method
This commit is contained in:
parent
f53fc229fc
commit
b4b538ea42
@ -85,7 +85,8 @@ var flags = {
|
||||
|
||||
// use SSL for sign in
|
||||
sslLogin: function (req) {
|
||||
return ['127.0.0.1', '81.174.141.101', '86.10.164.12'].indexOf(req.ip) !== -1;
|
||||
var chrome = req.headers['user-agent'].toLowerCase().indexOf('chrome') !== -1;
|
||||
return chrome && ['127.0.0.1', '81.174.141.101', '86.10.164.12'].indexOf(req.ip) !== -1;
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user