Skip to content

Commit 73b8d34

Browse files
committed
New feature (outbound request proxies).
Changelog excerpt: - Added the ability to route all outbound requests through a proxy, and two new configuration directives, "request_proxy" and "request_proxyauth".
1 parent 2566462 commit 73b8d34

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
181181
### v3.6.2
182182

183183
- [2025.05.20]: Halved entropy_filesize_limit's default value to 256KB to provide a safer margin against false positives.
184+
185+
### v3.7.0
186+
187+
- [2025.07.08]: Added the ability to route all outbound requests through a proxy, and two new configuration directives, `request_proxy` and `request_proxyauth`.

assets/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Configuration defaults file (last modified: 2025.05.20).
10+
# This file: Configuration defaults file (last modified: 2025.07.08).
1111
##/
1212

1313
core:
@@ -270,6 +270,12 @@ core:
270270
VirusTotal_HTTP: "VirusTotal (HTTP)"
271271
value_preg_filter:
272272
"~\s~": ""
273+
request_proxy:
274+
type: "string"
275+
default: ""
276+
request_proxyauth:
277+
type: "string"
278+
default: ""
273279
default_timeout:
274280
type: "int"
275281
default: 12
@@ -399,7 +405,6 @@ files:
399405
block_macros:
400406
type: "bool"
401407
default: false
402-
experimental: true
403408
only_allow_images:
404409
type: "bool"
405410
default: false

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"require": {
1414
"php": ">=7.2.0",
15-
"maikuolan/common": "^2.12.2",
15+
"maikuolan/common": "^2.14",
1616
"ext-pcre": "*"
1717
},
1818
"suggest": {

src/Loader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Loader
9898
/**
9999
* @var string phpMussel version number (SemVer).
100100
*/
101-
public $ScriptVersion = '3.6.2';
101+
public $ScriptVersion = '3.7.0';
102102

103103
/**
104104
* @var string phpMussel version identifier (complete notation).
@@ -361,6 +361,8 @@ public function __construct(
361361
$this->Request->Channels['Triggers'] = [];
362362
}
363363
$this->Request->Disabled = $this->Configuration['core']['disabled_channels'];
364+
$this->Request->Proxy = $this->Configuration['core']['request_proxy'];
365+
$this->Request->ProxyAuth = $this->Configuration['core']['request_proxyauth'];
364366
$this->Request->UserAgent = $this->ScriptUA;
365367
$this->Request->SendToOut = (defined('DEV_DEBUG_MODE') && DEV_DEBUG_MODE === true);
366368

0 commit comments

Comments
 (0)