Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProxyProtocol

Implementation of Proxy Protocol V2 in C#. Example usage:

var listener = new TcpListener(IPAddress.Any, 25);
listener.Start();
while (true) {
  var client = await listener.AcceptTcpClientAsync();  
  var proxyprotocol = new ProxyProtocol(client);
  var realRemoteEndpoint = await proxyprotocol.GetRemoteEndpoint();
  realClientIp = realRemoteEndpoint.Address.ToString();  
  
  // do work
}

About

Implementation of Proxy Protocol V2 in C#

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages