Change return value of GetStats to a reference
This commit is contained in:
parent
e65f05d29a
commit
fac3246d99
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ void WireguardProcessor::SetHeaderObfuscation(const char *key) {
|
||||||
dev_.SetHeaderObfuscation(key);
|
dev_.SetHeaderObfuscation(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
WgProcessorStats WireguardProcessor::GetStats() {
|
const WgProcessorStats &WireguardProcessor::GetStats() {
|
||||||
// todo: only supports one peer but i want this in the ui for now.
|
// todo: only supports one peer but i want this in the ui for now.
|
||||||
stats_.endpoint.sin.sin_family = 0;
|
stats_.endpoint.sin.sin_family = 0;
|
||||||
WgPeer *peer = dev_.first_peer();
|
WgPeer *peer = dev_.first_peer();
|
||||||
|
|
|
@ -88,7 +88,7 @@ public:
|
||||||
|
|
||||||
void SecondLoop();
|
void SecondLoop();
|
||||||
|
|
||||||
WgProcessorStats GetStats();
|
const WgProcessorStats &GetStats();
|
||||||
void ResetStats();
|
void ResetStats();
|
||||||
|
|
||||||
bool Start();
|
bool Start();
|
||||||
|
|
Loading…
Reference in a new issue