Skip to content

Commit

Permalink
1.2 FINAL release!
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoonlight committed Nov 18, 2019
1 parent e23cb33 commit 6d6a8f2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
using NSmartProxy.Infrastructure;
using NSmartProxy.Infrastructure.Interfaces;
using NSmartProxy.Interfaces;
using NSmartProxy.Shared;

// ReSharper disable All

namespace NSmartProxy.Infrastructure.Extension
Expand Down Expand Up @@ -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来的值进行接口调用
Expand Down
4 changes: 2 additions & 2 deletions src/NSmartProxy.Infrastructure/Shared/NSPVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
6 changes: 6 additions & 0 deletions src/NSmartProxyClient/NSmartProxyClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@

</ItemGroup>

<ItemGroup>
<None Update="log4net.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down

0 comments on commit 6d6a8f2

Please sign in to comment.