-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "pch.h" | ||
#include "CertPage.h" | ||
#if __has_include("CertPage.g.cpp") | ||
#include "CertPage.g.cpp" | ||
#endif | ||
|
||
using namespace winrt; | ||
using namespace Windows::UI::Xaml; | ||
|
||
namespace winrt::Maple_App::implementation | ||
{ | ||
CertPage::CertPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include "CertPage.g.h" | ||
|
||
namespace winrt::Maple_App::implementation | ||
{ | ||
struct CertPage : CertPageT<CertPage> | ||
{ | ||
CertPage(); | ||
}; | ||
} | ||
|
||
namespace winrt::Maple_App::factory_implementation | ||
{ | ||
struct CertPage : CertPageT<CertPage, implementation::CertPage> | ||
{ | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Maple_App | ||
{ | ||
[default_interface] | ||
runtimeclass CertPage : Windows.UI.Xaml.Controls.Page | ||
{ | ||
CertPage(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Page | ||
x:Class="Maple_App.CertPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Maple_App" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
<StackPanel Orientation="Vertical" Padding="16, 16, 0, 0"> | ||
<TextBlock TextWrapping="Wrap"> | ||
<Run>Set</Run> | ||
<Run FontFamily="Consolas">tls-cert</Run> | ||
<Run>attribute in an outbound configuration to make use of a custom TLS certificate. For more information, see</Run> | ||
<Hyperlink NavigateUri="https://github.com/eycorsican/leaf/blob/master/README.zh.md"> | ||
https://github.com/eycorsican/leaf/blob/master/README.zh.md | ||
</Hyperlink> | ||
<Run>.</Run> | ||
</TextBlock> | ||
</StackPanel> | ||
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule leaf
updated
21 files
+2 −0 | leaf/Cargo.toml | |
+14 −0 | leaf/src/app/inbound/manager.rs | |
+8 −2 | leaf/src/app/outbound/manager.rs | |
+21 −0 | leaf/src/config/conf/config.rs | |
+6 −0 | leaf/src/config/internal/config.proto | |
+153 −0 | leaf/src/config/internal/config.rs | |
+54 −4 | leaf/src/config/json/config.rs | |
+1 −1 | leaf/src/config/json/tests/test_config.rs | |
+1 −1 | leaf/src/config/json/tests/test_dns.rs | |
+15 −0 | leaf/src/config/mod.rs | |
+126 −8 | leaf/src/lib.rs | |
+9 −0 | leaf/src/option/mod.rs | |
+7 −21 | leaf/src/proxy/mod.rs | |
+3 −0 | leaf/src/proxy/tls/inbound/mod.rs | |
+76 −0 | leaf/src/proxy/tls/inbound/tcp.rs | |
+4 −3 | leaf/src/proxy/tls/mod.rs | |
+3 −0 | leaf/src/proxy/tls/outbound/mod.rs | |
+19 −5 | leaf/src/proxy/tls/outbound/tcp.rs | |
+0 −6 | leaf/src/util.rs | |
+1 −2 | leaf/tests/common.rs | |
+107 −0 | leaf/tests/test_tls_trojan.rs |