Fixed mprocs sending SIGHUP on restart instead of SIGTERM by adding

exec and updated gitignore
This commit is contained in:
2025-07-07 20:06:26 +03:00
parent 047d33b3ae
commit 0be78648cd
4 changed files with 5 additions and 4 deletions

View File

@@ -292,7 +292,7 @@ func (m *UsersInfo) Type() PacketType {
type TosInfo struct {
Tos string
PrivacyPolicy string
Date string // 2025-07-05
Hash string
}
func (m *TosInfo) Type() PacketType {

View File

@@ -486,12 +486,12 @@ func timeout[T packet.Payload](
func sendTosInfo(ctx context.Context, sess *session.Session) bool {
tos := embeds.TermsOfService.Load().(string)
privacy := embeds.PrivacyPolicy.Load().(string)
date := embeds.TosPrivacyHash.Load().(string)
hash := embeds.TosPrivacyHash.Load().(string)
payload := &packet.TosInfo{
Tos: tos,
PrivacyPolicy: privacy,
Date: date,
Hash: hash,
}
return sess.Write(ctx, payload)
}