Skip to content

Commit

Permalink
add vmess sample config
Browse files Browse the repository at this point in the history
  • Loading branch information
amiremohamadi committed May 24, 2024
1 parent 5ae5a0e commit 6b63be0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
File renamed without changes.
42 changes: 42 additions & 0 deletions config/vmess.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"log": {
"loglevel": "info"
},
"inbounds": [
{
"port": 1085,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "CLOUDFLARE_CLEAN_IP",
"port": 80,
"users": [
{
"id": "0fbf4f81-2598-4b6a-a623-0ead4cb9efa8",
"security": "zero"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings" : {
"headers": {
"Host": "CF_WORKERS_SUBDOMAIN"
}
}
}
}
]
}
1 change: 0 additions & 1 deletion src/proxy/vless.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::config::VlessConfig;
use crate::proxy::Proxy;

use std::net::{Ipv4Addr, Ipv6Addr};
use std::pin::Pin;
use std::task::{Context, Poll};

Expand Down

0 comments on commit 6b63be0

Please sign in to comment.