Skip to content

Commit

Permalink
修复caddy所用Email的生成bug
Browse files Browse the repository at this point in the history
  • Loading branch information
proxysu committed Apr 20, 2020
1 parent fe6a424 commit 6f8c4ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ProxySU/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,9 @@ private void StartSetUpRemoteHost(ConnectionInfo connectionInfo,TextBlock textBl
UploadConfig(connectionInfo, serverConfig, upLoadPath);

//设置Caddyfile文件中的tls 邮箱
string sshCmdEmail = $"email={ReceiveConfigurationParameters[4]};email=${{email/./@}};echo $email";//结尾有回车符
string email = client.RunCommand(sshCmdEmail).Result.Replace("\n", "");//删除结尾的回车符
//string sshCmdEmail = $"email={ReceiveConfigurationParameters[4]};email=${{email/./@}};echo $email";//结尾有回车符
//string email = client.RunCommand(sshCmdEmail).Result.Replace("\n", "");//删除结尾的回车符
string email = $"admin@{ReceiveConfigurationParameters[4]}";
string sshCmd = $"sed -i 's/off/{email}/' {upLoadPath}";//设置Caddyfile中的邮箱
client.RunCommand(sshCmd);
//设置Path
Expand Down
Binary file modified ProxySU/bin/Release/ProxySU.exe
Binary file not shown.
Binary file modified ProxySU/bin/Release/Release.zip
Binary file not shown.

0 comments on commit 6f8c4ba

Please sign in to comment.