Skip to content

Commit 2ea654d

Browse files
Merge pull request #571 from coperni:master
PiperOrigin-RevId: 767561821
2 parents dde186c + d9ff341 commit 2ea654d

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

fleetspeak/src/config/client/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func WriteLinuxConfig(cfg *cpb.Config, trustedPEM []byte) error {
2525
StateFile: "/var/lib/misc/fleetspeak-client.state",
2626
}},
2727
Streaming: !cfg.ComponentsConfig.HttpsConfig.DisableStreaming,
28+
Proxy: cfg.GetProxy(),
2829
}
2930

3031
b, err := prototext.Marshal(out)
@@ -54,6 +55,7 @@ func WriteDarwinConfig(cfg *cpb.Config, trustedPEM []byte) error {
5455
StateFile: "/etc/fleetspeak-client/state",
5556
}},
5657
Streaming: !cfg.ComponentsConfig.HttpsConfig.DisableStreaming,
58+
Proxy: cfg.GetProxy(),
5759
}
5860

5961
b, err := prototext.Marshal(out)
@@ -82,6 +84,7 @@ func WriteWindowsConfig(cfg *cpb.Config, trustedPEM []byte) error {
8284
ConfigurationKey: `HKEY_LOCAL_MACHINE\SOFTWARE\FleetspeakClient`,
8385
}},
8486
Streaming: !cfg.ComponentsConfig.HttpsConfig.DisableStreaming,
87+
Proxy: cfg.GetProxy(),
8588
}
8689

8790
b, err := prototext.Marshal(out)

fleetspeak/src/config/proto/fleetspeak_config/config.pb.go

Lines changed: 20 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fleetspeak/src/config/proto/fleetspeak_config/config.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,9 @@ message Config {
7070

7171
// If set, used for SNI server name and client-side certificate validation.
7272
string server_name = 12;
73+
74+
// If provided, proxy used for connecting to the server.
75+
// The format is a URL.
76+
// See https://golang.org/pkg/net/http/#Transport.Proxy for details.
77+
string proxy = 13;
7378
}

0 commit comments

Comments
 (0)