How can I zero the amount of user usage by "SetUser"?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
heydariomid4
Posts: 4
Joined: Sat Mar 09, 2024 3:35 pm

How can I zero the amount of user usage by "SetUser"?

Post by heydariomid4 » Tue Mar 12, 2024 6:43 pm

How can I zero the amount of user usage by "SetUser"?
"Ex.Recv.BroadcastBytes_u64": 617050966,
"Ex.Recv.BroadcastCount_u64": 4269721,
"Ex.Recv.UnicastBytes_u64": 149804008518,
"Ex.Recv.UnicastCount_u64": 129767970,
"Ex.Send.BroadcastBytes_u64": 90559536,
"Ex.Send.BroadcastCount_u64": 284149,
"Ex.Send.UnicastBytes_u64": 10503150177,
"Ex.Send.UnicastCount_u64": 47767761,

solo
Posts: 1282
Joined: Sun Feb 14, 2021 10:31 am

Re: How can I zero the amount of user usage by "SetUser"?

Post by solo » Tue Mar 12, 2024 10:10 pm

Modify this GetUser code for SetUser.

heydariomid4
Posts: 4
Joined: Sat Mar 09, 2024 3:35 pm

Re: How can I zero the amount of user usage by "SetUser"?

Post by heydariomid4 » Wed Mar 13, 2024 3:41 pm

What is the problem with the code below zero?

Http::withBasicAuth('', 'password')->get('localhost/api/SetUser', [
'HubName_str' => 'VPN',
'Name_str' => 'user',
'Note_utf' => '',
'AuthType_u32' => 1,
'Auth_Password_str' => '1234',
'UsePolicy_bool' => 'true',
'policy:Access_bool' => 'true',
'Recv.BroadcastBytes_u64' => 0,
'Recv.BroadcastCount_u64' => 0,
'Recv.UnicastBytes_u64' => 0,
'Recv.UnicastCount_u64' => 0,
'Send.BroadcastBytes_u64' => 0,
'Send.BroadcastCount_u64' => 0,
'Send.UnicastBytes_u64' => 0,
'Send.UnicastCount_u64' => 0,

]);

Post Reply