mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-05-14 11:16:04 +02:00
Type trashing to fix last commit.
This commit is contained in:
parent
051df29604
commit
1b7d661abd
|
@ -409,7 +409,8 @@ func serveFile(path string, info os.FileInfo, logEntry *LogEntry, conn net.Conn,
|
||||||
// Prepare to close the connection *without* TLS Close Notify so the client
|
// Prepare to close the connection *without* TLS Close Notify so the client
|
||||||
// knows something has gone wrong!
|
// knows something has gone wrong!
|
||||||
tlsConn, _ := conn.(*tls.Conn)
|
tlsConn, _ := conn.(*tls.Conn)
|
||||||
tcpConn := tlsConn.NetConn()
|
netConn := tlsConn.NetConn()
|
||||||
|
tcpConn := netConn.(*net.TCPConn)
|
||||||
remoteAddr := conn.RemoteAddr().String()
|
remoteAddr := conn.RemoteAddr().String()
|
||||||
if errors.Is(err, os.ErrDeadlineExceeded) {
|
if errors.Is(err, os.ErrDeadlineExceeded) {
|
||||||
log.Println("Writing to " + remoteAddr + " timed out.")
|
log.Println("Writing to " + remoteAddr + " timed out.")
|
||||||
|
|
Loading…
Reference in New Issue