mirror of
https://github.com/Kyren223/eko.git
synced 2025-09-05 21:18:14 +00:00
Fixed mprocs sending SIGHUP on restart instead of SIGTERM by adding
exec and updated gitignore
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user