default request

This commit is contained in:
Bitl 2023-01-05 21:23:39 -07:00
parent c3f3a26dca
commit 1e7bffcd8a
2 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,11 @@ namespace Novetus.Core
public virtual bool IsValidURL(string absolutePath, string host) { return false; }
public virtual Task OnBeforeTunnelConnectRequest(object sender, TunnelConnectSessionEventArgs e) { return Task.CompletedTask; }
public virtual Task OnRequest(object sender, SessionEventArgs e) { return Task.CompletedTask; }
public virtual Task OnRequest(object sender, SessionEventArgs e)
{
e.Ok("Test successful. \nRunning Novetus " + GlobalVars.ProgramInformation.Version + " on " + GlobalVars.ProgramInformation.NetVersion);
return Task.CompletedTask;
}
}
public class WebProxy