mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
Remove agent string
The agent string was inspired by the HTTP User-Agent header to serve as a way to identify what's connecting to the cluster. While there may have been vision of other software connecting to a controller than the Clusterio provided ones this seems highly unlikely to ever happen. Remove redundant agent string for now.
This commit is contained in:
1 parent
8704a24f26
commit
705fb90740
13 files changed
+6
-37
No files matched your search
@@ -211,7 +211,6 @@ export class MessageHello extends Message {
|
||||
export class RegisterHostData {
|
||||
constructor(
|
||||
public token: string,
|
||||
public agent: string,
|
||||
public version: string,
|
||||
public name: string,
|
||||
public id: number,
|
||||
@@ -221,7 +220,6 @@ export class RegisterHostData {
|
||||
|
||||
static jsonSchema = Type.Object({
|
||||
"token": Type.String(),
|
||||
"agent": Type.String(),
|
||||
"version": Type.String(),
|
||||
"name": Type.String(),
|
||||
"id": Type.Integer(),
|
||||
@@ -230,7 +228,7 @@ export class RegisterHostData {
|
||||
});
|
||||
|
||||
static fromJSON(json: Static<typeof this.jsonSchema>) {
|
||||
return new this(json.token, json.agent, json.version, json.name, json.id, json.publicAddress, json.plugins);
|
||||
return new this(json.token, json.version, json.name, json.id, json.publicAddress, json.plugins);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -254,18 +252,16 @@ export class MessageRegisterHost extends Message {
|
||||
export class RegisterControlData {
|
||||
constructor(
|
||||
public token: string,
|
||||
public agent: string,
|
||||
public version: string,
|
||||
) { }
|
||||
|
||||
static jsonSchema = Type.Object({
|
||||
"token": Type.String(),
|
||||
"agent": Type.String(),
|
||||
"version": Type.String(),
|
||||
});
|
||||
|
||||
static fromJSON(json: Static<typeof this.jsonSchema>) {
|
||||
return new this(json.token, json.agent, json.version);
|
||||
return new this(json.token, json.version);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import { CollectorResultSerialized } from "../prometheus";
|
||||
|
||||
export class HostDetails {
|
||||
constructor(
|
||||
public agent: string,
|
||||
public version: string,
|
||||
public name: string,
|
||||
public id: number,
|
||||
@@ -17,7 +16,6 @@ export class HostDetails {
|
||||
) { }
|
||||
|
||||
static jsonSchema = Type.Object({
|
||||
"agent": Type.String(),
|
||||
"version": Type.String(),
|
||||
"name": Type.String(),
|
||||
"id": Type.Integer(),
|
||||
@@ -30,7 +28,6 @@ export class HostDetails {
|
||||
|
||||
static fromJSON(json: Static<typeof this.jsonSchema>) {
|
||||
return new this(
|
||||
json.agent,
|
||||
json.version,
|
||||
json.name,
|
||||
json.id,
|
||||
|
||||
Reference in new issue
Block a user