1
0
Fork 0
forked from svrjs/svrjs

Add .mov, .wma and .wmv files

This commit is contained in:
Dorian Niemiec 2024-04-02 10:37:55 +02:00
parent b236064a9b
commit 0fc76179f3
3 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@
"/.*\\.png$/", "/.*\\.png$/",
"/.*\\.jpg$/", "/.*\\.jpg$/",
"/.*\\.webp$/", "/.*\\.webp$/",
"/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/", "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/",
], ],
"enableIPSpoofing": false, "enableIPSpoofing": false,
"secure": false, "secure": false,

View file

@ -71,7 +71,7 @@
"/.*\\.png$/", "/.*\\.png$/",
"/.*\\.jpg$/", "/.*\\.jpg$/",
"/.*\\.webp$/", "/.*\\.webp$/",
"/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/", "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/",
], ],
"enableIPSpoofing": false, "enableIPSpoofing": false,
"secure": false, "secure": false,

4
svr.js
View file

@ -1162,7 +1162,7 @@ var stackHidden = false;
var exposeServerVersion = true; var exposeServerVersion = true;
var rewriteMap = []; var rewriteMap = [];
var allowStatus = true; var allowStatus = true;
var dontCompress = ["/.*\\.ipxe$/", "/.*\\.flp$/", "/.*\\.img$/", "/.*\\.iso$/", "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", "/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/"]; var dontCompress = ["/.*\\.ipxe$/", "/.*\\.flp$/", "/.*\\.img$/", "/.*\\.iso$/", "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/"];
var enableIPSpoofing = false; var enableIPSpoofing = false;
var sni = {}; var sni = {};
var disableNonEncryptedServer = false; var disableNonEncryptedServer = false;
@ -5628,7 +5628,7 @@ function saveConfig() {
if (configJSONobj.disableServerSideScriptExpose === undefined) configJSONobj.disableServerSideScriptExpose = true; if (configJSONobj.disableServerSideScriptExpose === undefined) configJSONobj.disableServerSideScriptExpose = true;
if (configJSONobj.allowStatus === undefined) configJSONobj.allowStatus = true; if (configJSONobj.allowStatus === undefined) configJSONobj.allowStatus = true;
if (configJSONobj.rewriteMap === undefined) configJSONobj.rewriteMap = []; if (configJSONobj.rewriteMap === undefined) configJSONobj.rewriteMap = [];
if (configJSONobj.dontCompress === undefined) configJSONobj.dontCompress = ["/.*\\.ipxe$/", "/.*\\.flp$/", "/.*\\.img$/", "/.*\\.iso$/", "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", "/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/"]; if (configJSONobj.dontCompress === undefined) configJSONobj.dontCompress = ["/.*\\.ipxe$/", "/.*\\.flp$/", "/.*\\.img$/", "/.*\\.iso$/", "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/"];
if (configJSONobj.enableIPSpoofing === undefined) configJSONobj.enableIPSpoofing = false; if (configJSONobj.enableIPSpoofing === undefined) configJSONobj.enableIPSpoofing = false;
if (configJSONobj.secure === undefined) configJSONobj.secure = false; if (configJSONobj.secure === undefined) configJSONobj.secure = false;
if (configJSONobj.disableNonEncryptedServer === undefined) configJSONobj.disableNonEncryptedServer = false; if (configJSONobj.disableNonEncryptedServer === undefined) configJSONobj.disableNonEncryptedServer = false;