Add sighup and block flag to block connections

Former-commit-id: 694a7986f5
This commit is contained in:
Owen
2026-05-28 15:38:09 -07:00
parent 34d2cad512
commit 71eb811829
10 changed files with 175 additions and 27 deletions
+5
View File
@@ -172,6 +172,11 @@ func (c *Client) GetConfig() *Config {
return c.config
}
// GetConfigFilePath returns the resolved path to the config file used by this client.
func (c *Client) GetConfigFilePath() string {
return getConfigPath(c.clientType, c.configFilePath)
}
func (c *Client) GetServerVersion() string {
return c.serverVersion
}
+2 -1
View File
@@ -7,6 +7,7 @@ type Config struct {
TlsClientCert string `json:"tlsClientCert"`
ProvisioningKey string `json:"provisioningKey,omitempty"`
Name string `json:"name,omitempty"`
Blocked bool `json:"blocked,omitempty"`
}
type TokenResponse struct {
@@ -31,4 +32,4 @@ type WSMessage struct {
Type string `json:"type"`
Data interface{} `json:"data"`
ConfigVersion int64 `json:"configVersion,omitempty"`
}
}