diff --git a/config.json b/config.json index 8d822b6..c564e9e 100644 --- a/config.json +++ b/config.json @@ -46,7 +46,7 @@ "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", - "/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/", + "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/", ], "enableIPSpoofing": false, "secure": false, diff --git a/index.html b/index.html index 44b06d6..004fd9e 100644 --- a/index.html +++ b/index.html @@ -71,7 +71,7 @@ "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", - "/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/", + "/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/", ], "enableIPSpoofing": false, "secure": false, diff --git a/svr.js b/svr.js index c391601..e6f31f9 100644 --- a/svr.js +++ b/svr.js @@ -1162,7 +1162,7 @@ var stackHidden = false; var exposeServerVersion = true; var rewriteMap = []; 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 sni = {}; var disableNonEncryptedServer = false; @@ -5628,7 +5628,7 @@ function saveConfig() { if (configJSONobj.disableServerSideScriptExpose === undefined) configJSONobj.disableServerSideScriptExpose = true; if (configJSONobj.allowStatus === undefined) configJSONobj.allowStatus = true; 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.secure === undefined) configJSONobj.secure = false; if (configJSONobj.disableNonEncryptedServer === undefined) configJSONobj.disableNonEncryptedServer = false;