Skip to content

Commit

Permalink
Move verbose print client hello data to proxyserver.
Browse files Browse the repository at this point in the history
  • Loading branch information
wi1dcard committed Mar 17, 2024
1 parent a3cd1f2 commit 2809a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/fingerprint/header_injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ func (i *FingerprintHeaderInjector) GetHeaderValue(req *http.Request) (string, e
return "", fmt.Errorf("failed to get context")
}

vlogf("client hello (%s): %x", req.RemoteAddr, data.ClientHelloRecord)

start := time.Now()
fp, err := i.FingerprintFunc(data)
duration := time.Since(start)
Expand Down
2 changes: 2 additions & 0 deletions pkg/proxyserver/proxyserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ func (server *Server) serveConn(conn net.Conn) {
return
}

server.vlogf("client hello (%s): %x", conn.RemoteAddr().String(), rec)

cs := tlsConn.ConnectionState()

// either directly serve the http2 conn, or, send to the channel
Expand Down

0 comments on commit 2809a6c

Please sign in to comment.