Merge remote-tracking branch 'origin/master'

This commit is contained in:
Zam
2024-01-30 15:46:43 +01:00
3 changed files with 0 additions and 16 deletions

View File

@@ -269,11 +269,8 @@ func (server *Server) sendPTE(conn *net.UDPConn, addr *net.UDPAddr, pck *common.
file := filepath.Join(server.parentFilePath, path)
file = filepath.Clean(file)
// fmt.Sprintf("%v\\*", server.parentFilePath)
matched, err := filepath.Match(filepath.Join(server.parentFilePath, "*"), file)
fmt.Println(filepath.Join(server.parentFilePath, "*"))
if err != nil || !matched {
log.WithFields(log.Fields{
"ParentFilePath": server.parentFilePath,
@@ -418,8 +415,6 @@ func (server *Server) handleConnection(conn net.Conn) {
return
}
// fmt.Println(buf)
rsaPck := common.RsaPacketFromBytes(buf[0:r])
key, err := rsaPck.ExtractKey(server.rsa)
if err != nil && !errors.Is(err, io.EOF) {