Skip to content

Commit cec2c08

Browse files
committed
not hehe fix
1 parent 2674986 commit cec2c08

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/bin/agent/agent.service

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Unit]
2+
Description=Pony Agent Service
3+
After=xray.service
4+
Requires=xray.service
5+
6+
[Service]
7+
Type=simple
8+
ExecStart=/opt/vpn/agent /opt/vpn/config-agent.toml
9+
Restart=on-failure
10+
RestartSec=5
11+
WorkingDirectory=/opt/vpn
12+
13+
[Install]
14+
WantedBy=multi-user.target

src/bin/api/core/http/handlers/connection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ where
324324
let conn_id = uuid::Uuid::new_v4();
325325
let msg = conn.as_create_message(&conn_id);
326326

327-
let messages = [msg];
328-
327+
let messages = vec![msg];
328+
329329
match SyncOp::add_conn(&memory, &conn_id, conn.clone()).await {
330330
Ok(StorageOperationStatus::Ok(id)) => {
331331
let bytes = match rkyv::to_bytes::<_, 1024>(&messages) {

0 commit comments

Comments
 (0)