switch to signame for cross system compat

This commit is contained in:
sawka 2022-09-06 16:41:05 -07:00
parent 46f48a947c
commit cde8bed381
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ type FeInputPacketType struct {
CK base.CommandKey `json:"ck"`
Remote sstore.RemotePtrType `json:"remote"`
InputData64 string `json:"inputdata64"`
SigNum int `json:"signum,omitempty"`
SigName string `json:"signame,omitempty"`
WinSize *packet.WinSize `json:"winsize,omitempty"`
}

View File

@ -235,10 +235,10 @@ func sendCmdInput(pk *scpacket.FeInputPacketType) error {
return err
}
}
if pk.SigNum != 0 || pk.WinSize != nil {
if pk.SigName != "" || pk.WinSize != nil {
siPk := packet.MakeSpecialInputPacket()
siPk.CK = pk.CK
siPk.SigNum = pk.SigNum
siPk.SigName = pk.SigName
siPk.WinSize = pk.WinSize
err = msh.SendSpecialInput(siPk)
if err != nil {