1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 15:55:20 -05:00

get rid of annoying firewall warnings

This commit is contained in:
v2ray
2016-05-29 16:37:52 +02:00
parent c3aa839227
commit b47c1ca609
34 changed files with 110 additions and 51 deletions

View File

@@ -1,5 +1,6 @@
{
"port": 50000,
"listen": "127.0.0.1",
"inbound": {
"protocol": "socks",
"settings": {

View File

@@ -1,9 +1,8 @@
{
"port": 50001,
"listen": "127.0.0.1",
"log": {
"access": "/tmp/v2ray_access.log",
"error": "/tmp/v2ray_error.log",
"loglevel": "error"
"loglevel": "none"
},
"inbound": {
"protocol": "vmess",
@@ -29,6 +28,7 @@
"inboundDetour": [
{
"protocol": "vmess",
"listen": "127.0.0.1",
"port": "50005-50009",
"tag": "detour",
"settings": {

View File

@@ -1,5 +1,6 @@
{
"port": 50010,
"listen": "127.0.0.1",
"inbound": {
"protocol": "socks",
"settings": {
@@ -25,6 +26,7 @@
"inboundDetour": [
{
"protocol": "dokodemo-door",
"listen": "127.0.0.1",
"port": "50011-50015",
"settings": {
"address": "127.0.0.1",

View File

@@ -1,5 +1,9 @@
{
"port": 50017,
"listen": "127.0.0.1",
"log": {
"loglevel": "none"
},
"inbound": {
"protocol": "vmess",
"settings": {

View File

@@ -1,9 +1,8 @@
{
"port": 50020,
"listen": "127.0.0.1",
"log": {
"access": "/tmp/v2ray_access_1.log",
"error": "/tmp/v2ray_error_1.log",
"loglevel": "error"
"loglevel": "none"
},
"inbound": {
"protocol": "dokodemo-door",
@@ -32,6 +31,7 @@
{
"protocol": "dokodemo-door",
"port": 50022,
"listen": "127.0.0.1",
"settings": {
"address": "127.0.0.1",
"port": 50025,

View File

@@ -1,5 +1,6 @@
{
"port": 50021,
"listen": "127.0.0.1",
"inbound": {
"protocol": "vmess",
"settings": {

View File

@@ -1,5 +1,6 @@
{
"port": 50030,
"listen": "127.0.0.1",
"inbound": {
"protocol": "dokodemo-door",
"settings": {

View File

@@ -1,5 +1,6 @@
{
"port": 50031,
"listen": "127.0.0.1",
"log": {
"loglevel": "warning"
},
@@ -27,6 +28,7 @@
"inboundDetour": [
{
"protocol": "vmess",
"listen": "127.0.0.1",
"port": "50035-50039",
"tag": "detour",
"settings": {},

View File

@@ -1,5 +1,6 @@
{
"port": 50040,
"listen": "127.0.0.1",
"inbound": {
"protocol": "http",
"settings": {}

View File

@@ -1,5 +1,6 @@
{
"port": 50041,
"listen": "127.0.0.1",
"inbound": {
"protocol": "vmess",
"settings": {

View File

@@ -1,5 +1,6 @@
{
"port": 50051,
"listen": "127.0.0.1",
"inbound": {
"protocol": "shadowsocks",
"settings": {
@@ -11,6 +12,7 @@
{
"protocol": "shadowsocks",
"port": 50055,
"listen": "127.0.0.1",
"settings": {
"method": "aes-128-cfb",
"password": "v2ray-another",
@@ -20,6 +22,7 @@
{
"protocol": "shadowsocks",
"port": 50056,
"listen": "127.0.0.1",
"settings": {
"method": "chacha20",
"password": "new-password",

View File

@@ -27,7 +27,7 @@ func (server *Server) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
}
func (server *Server) Start() (v2net.Destination, error) {
go http.ListenAndServe(":"+server.Port.String(), server)
go http.ListenAndServe("127.0.0.1:"+server.Port.String(), server)
return v2net.TCPDestination(v2net.LocalHostIP, v2net.Port(server.Port)), nil
}

View File

@@ -17,7 +17,7 @@ type Server struct {
func (server *Server) Start() (v2net.Destination, error) {
listener, err := net.ListenTCP("tcp", &net.TCPAddr{
IP: []byte{0, 0, 0, 0},
IP: []byte{127, 0, 0, 1},
Port: int(server.Port),
Zone: "",
})

View File

@@ -16,7 +16,7 @@ type Server struct {
func (server *Server) Start() (v2net.Destination, error) {
conn, err := net.ListenUDP("udp", &net.UDPAddr{
IP: []byte{0, 0, 0, 0},
IP: []byte{127, 0, 0, 1},
Port: int(server.Port),
Zone: "",
})