X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/21581958c38861f3a62ef7c27d0a8a6f4db2a1f8..dd3acf5eaf12f9419950b7ee7221d99e98a1d9a1:/hotline/server.go diff --git a/hotline/server.go b/hotline/server.go index 11ec21d..21b1316 100644 --- a/hotline/server.go +++ b/hotline/server.go @@ -591,7 +591,7 @@ func (s *Server) handleNewConnection(ctx context.Context, conn io.ReadWriteClose s.outbox <- c.NewReply(clientLogin, NewField(fieldVersion, []byte{0x00, 0xbe}), - NewField(fieldCommunityBannerID, []byte{0x00, 0x01}), + NewField(fieldCommunityBannerID, []byte{0, 0}), NewField(fieldServerName, []byte(s.Config.Name)), ) @@ -716,6 +716,10 @@ func (s *Server) handleFileTransfer(ctx context.Context, rwc io.ReadWriter) erro ) switch fileTransfer.Type { + case bannerDownload: + if err := s.bannerDownload(rwc); err != nil { + return err + } case FileDownload: s.Stats.DownloadCounter += 1