Skip to content

Commit

Permalink
Add daemon header to udp request
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Nov 14, 2023
1 parent 0e98041 commit 688ce64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enhanced/utils/queue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function sendUdpMessage(obj: unknown) {

console.log('obj', obj);

client.send(JSON.stringify(obj), 2000, '127.0.0.1', (err, bytes) => {
client.send(`{"format": "json", "version": 1}\n${JSON.stringify(obj)}`, 2000, '127.0.0.1', (err, bytes) => {
if (err) {
console.error('Error occurred when sending udp message to xray daemon', err);
}
Expand Down

0 comments on commit 688ce64

Please sign in to comment.