diff --git a/src/NSmartProxy.Infrastructure/Extensions/HttpServer/HttpServer.cs b/src/NSmartProxy.Infrastructure/Extensions/HttpServer/HttpServer.cs index a3dbab5..fb76b8f 100644 --- a/src/NSmartProxy.Infrastructure/Extensions/HttpServer/HttpServer.cs +++ b/src/NSmartProxy.Infrastructure/Extensions/HttpServer/HttpServer.cs @@ -15,6 +15,8 @@ using NSmartProxy.Infrastructure; using NSmartProxy.Infrastructure.Interfaces; using NSmartProxy.Interfaces; +using NSmartProxy.Shared; + // ReSharper disable All namespace NSmartProxy.Infrastructure.Extension @@ -103,11 +105,12 @@ private async Task ProcessHttpRequestAsync(HttpListenerContext context) var request = context.Request; var response = context.Response; - //TODO XX 设置该同源策略为了方便调试,真实项目可以确保同源 + //TODO XX 设置该同源策略为了方便调试,真实项目请确保同源 #if DEBUG response.AddHeader("Access-Control-Allow-Origin", "*"); #endif + response.Headers["Server"] = ""; try { //通过request来的值进行接口调用 diff --git a/src/NSmartProxy.Infrastructure/Shared/NSPVersion.cs b/src/NSmartProxy.Infrastructure/Shared/NSPVersion.cs index 45518ea..ef1d6f1 100644 --- a/src/NSmartProxy.Infrastructure/Shared/NSPVersion.cs +++ b/src/NSmartProxy.Infrastructure/Shared/NSPVersion.cs @@ -2,6 +2,6 @@ public sealed class NSPVersion { public const string NO_TOKEN_STRING = "notoken"; - public const string NSmartProxyClientName = "NSmartProxy Client v1.2.7095.9288"; - public const string NSmartProxyServerName = "NSmartProxy Server v1.2.7095.9288"; + public const string NSmartProxyClientName = "NSmartProxy Client v1.2.7096.7342"; + public const string NSmartProxyServerName = "NSmartProxy Server v1.2.7096.7342"; } \ No newline at end of file diff --git a/src/NSmartProxyClient/NSmartProxyClient.csproj b/src/NSmartProxyClient/NSmartProxyClient.csproj index 5f49818..589eca2 100644 --- a/src/NSmartProxyClient/NSmartProxyClient.csproj +++ b/src/NSmartProxyClient/NSmartProxyClient.csproj @@ -32,4 +32,10 @@ + + + PreserveNewest + + + diff --git a/src/build.cmd b/src/build.cmd index 09c8524..7469a9e 100644 --- a/src/build.cmd +++ b/src/build.cmd @@ -2,7 +2,7 @@ rem windows only rem NSP v1.2 @ECHO off -set Ver=v1.2pre3 +set Ver=v1.2pre4 set BuildPath=%~dp0../build set nsp_client_path=%BuildPath%/nspclient_%Ver%