Add file timestamps

This commit is contained in:
2022-01-26 08:49:54 +10:30
parent 1026cc5dd9
commit 80d23b514c
3 changed files with 13 additions and 7 deletions

View File

@@ -108,7 +108,7 @@ func (s *Server) handleConnection(conn *net.TCPConn) {
// tell teh client the dealio
startResponse := secure.PacketStartResponse{}
if start.ProtocolVersion != "1.0" {
if start.ProtocolVersion != "1.1" {
log.Errorf("bad protocol version")
startResponse.Response = secure.PacketStartResponseEnumWrongProtocol
enc.Encode(startResponse)
@@ -307,6 +307,7 @@ func (s *Server) handleConnection(conn *net.TCPConn) {
p.Kind = ngf.Kind
p.Id = ngf.Id
p.Filename = ngf.Filename
p.Timestamp = ngf.Timestamp
enc.Encode(p)
}
log.Debugf("done sending list, closing connection")