mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
Add support for HTTPS
This commit is contained in:
parent
cb1f39b3e5
commit
a21bd62350
4 changed files with 32 additions and 1 deletions
|
@ -173,6 +173,10 @@ func (config *HTTPConfig) SpawnRoutine(vt *VirtualTun) {
|
|||
server.authRequired = true
|
||||
}
|
||||
|
||||
if config.CertFile != "" && config.KeyFile != "" {
|
||||
server.tlsRequired = true
|
||||
}
|
||||
|
||||
if err := server.ListenAndServe("tcp", config.BindAddress); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue