Skip to content

Commit c0b1cc8

Browse files
committed
fix: https_proxy也写入环境变量
1 parent 16acef3 commit c0b1cc8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Configuration/ProxyOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ProxyOptions : EditableOptionsBase
2020
public bool IgnoreCertificateValidation { get; set; } = false;
2121

2222
[DisplayName("写入环境变量")]
23-
[Description("同步写入 http_proxy/HTTP_PROXY/HTTPS_PROXY,便于 ffprobe 等外部进程访问需要代理的资源。")]
23+
[Description("同步写入 http_proxy/https_proxy/HTTP_PROXY/HTTPS_PROXY,便于 ffprobe 等外部进程访问需要代理的资源。")]
2424
public bool WriteProxyEnvVars { get; set; } = true;
2525
}
2626
}

MediaInfoKeeper.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<Description>MediaInfoKeeper Emby plugin</Description>
55
<PackageTags>emby;plugin;pms;media;server;</PackageTags>
66
<BaseOutputPath>Build\bin\</BaseOutputPath>
7-
<AssemblyVersion>1.5.4.0</AssemblyVersion>
8-
<FileVersion>1.5.4.0</FileVersion>
9-
<Version>1.5.4</Version>
7+
<AssemblyVersion>1.5.5.0</AssemblyVersion>
8+
<FileVersion>1.5.5.0</FileVersion>
9+
<Version>1.5.5</Version>
1010
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1111
</PropertyGroup>
1212
<ItemGroup>

Services/ProxyServer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ private static void ApplyProxyEnvironmentVariables()
197197
if (isEnabled && writeEnv && !string.IsNullOrEmpty(proxyUrl))
198198
{
199199
Environment.SetEnvironmentVariable("http_proxy", proxyUrl);
200+
Environment.SetEnvironmentVariable("https_proxy", proxyUrl);
200201
Environment.SetEnvironmentVariable("HTTP_PROXY", proxyUrl);
201202
Environment.SetEnvironmentVariable("HTTPS_PROXY", proxyUrl);
202203
logger.Info($"设置代理环境变量 {proxyUrl}");

0 commit comments

Comments
 (0)