From 1ab94fed79aa311b612bfaacd8fb1e699da7ad09 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 1 Feb 2019 20:08:21 +0100 Subject: [PATCH] optimize v2ctl size --- app/commander/commander.go | 2 ++ app/commander/outbound.go | 2 ++ app/commander/service.go | 2 ++ app/dispatcher/default.go | 2 ++ app/dispatcher/dispatcher.go | 2 ++ app/dispatcher/sniffer.go | 2 ++ app/dispatcher/stats.go | 2 ++ app/dns/hosts.go | 2 ++ app/dns/nameserver.go | 2 ++ app/dns/server.go | 2 ++ app/dns/udpns.go | 2 ++ app/log/command/command.go | 2 ++ app/log/log.go | 2 ++ app/log/log_creator.go | 2 ++ app/proxyman/command/command.go | 2 ++ app/reverse/bridge.go | 2 ++ app/reverse/config.go | 2 ++ app/reverse/portal.go | 2 ++ app/reverse/reverse.go | 2 ++ app/router/balancing.go | 2 ++ app/router/condition.go | 2 ++ app/router/condition_geoip.go | 2 ++ app/router/config.go | 2 ++ app/router/router.go | 2 ++ app/stats/command/command.go | 2 ++ app/stats/config.go | 2 ++ app/stats/stats.go | 2 ++ common/net/connection.go | 2 ++ config.go | 2 ++ context.go | 2 ++ functions.go | 2 ++ proxy/dokodemo/dokodemo.go | 2 ++ proxy/freedom/freedom.go | 2 ++ proxy/http/server.go | 2 ++ proxy/mtproto/server.go | 2 ++ proxy/shadowsocks/client.go | 2 ++ proxy/shadowsocks/ota.go | 2 ++ proxy/shadowsocks/protocol.go | 2 ++ proxy/shadowsocks/server.go | 2 ++ proxy/socks/client.go | 2 ++ proxy/socks/config.go | 2 ++ proxy/socks/protocol.go | 2 ++ proxy/socks/server.go | 2 ++ proxy/vmess/inbound/config.go | 2 ++ proxy/vmess/inbound/inbound.go | 2 ++ proxy/vmess/outbound/command.go | 2 ++ proxy/vmess/outbound/outbound.go | 2 ++ transport/internet/domainsocket/config.go | 2 ++ transport/internet/domainsocket/dial.go | 1 + transport/internet/domainsocket/listener.go | 1 + transport/internet/http/config.go | 2 ++ transport/internet/http/dialer.go | 2 ++ transport/internet/http/hub.go | 2 ++ transport/internet/kcp/config.go | 2 ++ transport/internet/kcp/connection.go | 2 ++ transport/internet/kcp/crypt.go | 2 ++ transport/internet/kcp/dialer.go | 2 ++ transport/internet/kcp/io.go | 2 ++ transport/internet/kcp/listener.go | 2 ++ transport/internet/kcp/output.go | 2 ++ transport/internet/kcp/receiving.go | 2 ++ transport/internet/kcp/segment.go | 2 ++ transport/internet/kcp/sending.go | 2 ++ transport/internet/quic/config.go | 2 ++ transport/internet/quic/conn.go | 2 ++ transport/internet/quic/dialer.go | 2 ++ transport/internet/quic/hub.go | 2 ++ transport/internet/quic/pool.go | 2 ++ transport/internet/quic/quic.go | 2 ++ transport/internet/tcp/config.go | 2 ++ transport/internet/tcp/dialer.go | 2 ++ transport/internet/tcp/hub.go | 2 ++ transport/internet/tcp/sockopt_linux.go | 1 + transport/internet/tcp/sockopt_other.go | 1 + transport/internet/tls/config.go | 2 ++ transport/internet/tls/config_other.go | 1 + transport/internet/tls/config_windows.go | 1 + transport/internet/tls/tls.go | 2 ++ transport/internet/websocket/config.go | 2 ++ transport/internet/websocket/connection.go | 2 ++ transport/internet/websocket/dialer.go | 2 ++ transport/internet/websocket/hub.go | 2 ++ v2ray.go | 2 ++ 83 files changed, 160 insertions(+) diff --git a/app/commander/commander.go b/app/commander/commander.go index 9461e73a..2a8ae501 100644 --- a/app/commander/commander.go +++ b/app/commander/commander.go @@ -1,3 +1,5 @@ +// +build !confonly + package commander //go:generate errorgen diff --git a/app/commander/outbound.go b/app/commander/outbound.go index aa03e162..90749705 100644 --- a/app/commander/outbound.go +++ b/app/commander/outbound.go @@ -1,3 +1,5 @@ +// +build !confonly + package commander import ( diff --git a/app/commander/service.go b/app/commander/service.go index 4e227c34..c25816e4 100644 --- a/app/commander/service.go +++ b/app/commander/service.go @@ -1,3 +1,5 @@ +// +build !confonly + package commander import ( diff --git a/app/dispatcher/default.go b/app/dispatcher/default.go index a7822783..95984a70 100644 --- a/app/dispatcher/default.go +++ b/app/dispatcher/default.go @@ -1,3 +1,5 @@ +// +build !confonly + package dispatcher //go:generate errorgen diff --git a/app/dispatcher/dispatcher.go b/app/dispatcher/dispatcher.go index 4a08c6b6..76c873a9 100644 --- a/app/dispatcher/dispatcher.go +++ b/app/dispatcher/dispatcher.go @@ -1,3 +1,5 @@ +// +build !confonly + package dispatcher import "context" diff --git a/app/dispatcher/sniffer.go b/app/dispatcher/sniffer.go index 665a413c..34851ab8 100644 --- a/app/dispatcher/sniffer.go +++ b/app/dispatcher/sniffer.go @@ -1,3 +1,5 @@ +// +build !confonly + package dispatcher import ( diff --git a/app/dispatcher/stats.go b/app/dispatcher/stats.go index b897c8e6..9b1c3a06 100644 --- a/app/dispatcher/stats.go +++ b/app/dispatcher/stats.go @@ -1,3 +1,5 @@ +// +build !confonly + package dispatcher import ( diff --git a/app/dns/hosts.go b/app/dns/hosts.go index ae48bcf2..267f4027 100644 --- a/app/dns/hosts.go +++ b/app/dns/hosts.go @@ -1,3 +1,5 @@ +// +build !confonly + package dns import ( diff --git a/app/dns/nameserver.go b/app/dns/nameserver.go index abbfb408..b26c21ff 100644 --- a/app/dns/nameserver.go +++ b/app/dns/nameserver.go @@ -1,3 +1,5 @@ +// +build !confonly + package dns import ( diff --git a/app/dns/server.go b/app/dns/server.go index 68858ad5..494af755 100644 --- a/app/dns/server.go +++ b/app/dns/server.go @@ -1,3 +1,5 @@ +// +build !confonly + package dns //go:generate errorgen diff --git a/app/dns/udpns.go b/app/dns/udpns.go index c54b07e8..e9c70231 100644 --- a/app/dns/udpns.go +++ b/app/dns/udpns.go @@ -1,3 +1,5 @@ +// +build !confonly + package dns import ( diff --git a/app/log/command/command.go b/app/log/command/command.go index ac33f5b5..5d3ef6c4 100644 --- a/app/log/command/command.go +++ b/app/log/command/command.go @@ -1,3 +1,5 @@ +// +build !confonly + package command //go:generate errorgen diff --git a/app/log/log.go b/app/log/log.go index 726e02c4..22bba19e 100644 --- a/app/log/log.go +++ b/app/log/log.go @@ -1,3 +1,5 @@ +// +build !confonly + package log //go:generate errorgen diff --git a/app/log/log_creator.go b/app/log/log_creator.go index ade60b53..c7ea5a80 100644 --- a/app/log/log_creator.go +++ b/app/log/log_creator.go @@ -1,3 +1,5 @@ +// +build !confonly + package log import ( diff --git a/app/proxyman/command/command.go b/app/proxyman/command/command.go index 010a6ff9..64b4a2e6 100755 --- a/app/proxyman/command/command.go +++ b/app/proxyman/command/command.go @@ -1,3 +1,5 @@ +// +build !confonly + package command import ( diff --git a/app/reverse/bridge.go b/app/reverse/bridge.go index f823977c..3be8f7c4 100644 --- a/app/reverse/bridge.go +++ b/app/reverse/bridge.go @@ -1,3 +1,5 @@ +// +build !confonly + package reverse import ( diff --git a/app/reverse/config.go b/app/reverse/config.go index b8080237..04259bae 100644 --- a/app/reverse/config.go +++ b/app/reverse/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package reverse import ( diff --git a/app/reverse/portal.go b/app/reverse/portal.go index bcdebfb6..8d624cd9 100644 --- a/app/reverse/portal.go +++ b/app/reverse/portal.go @@ -1,3 +1,5 @@ +// +build !confonly + package reverse import ( diff --git a/app/reverse/reverse.go b/app/reverse/reverse.go index 88f15f79..898a1850 100644 --- a/app/reverse/reverse.go +++ b/app/reverse/reverse.go @@ -1,3 +1,5 @@ +// +build !confonly + package reverse //go:generate errorgen diff --git a/app/router/balancing.go b/app/router/balancing.go index fc3fc1af..c6debe6a 100644 --- a/app/router/balancing.go +++ b/app/router/balancing.go @@ -1,3 +1,5 @@ +// +build !confonly + package router import ( diff --git a/app/router/condition.go b/app/router/condition.go index 4face51d..16b324fb 100644 --- a/app/router/condition.go +++ b/app/router/condition.go @@ -1,3 +1,5 @@ +// +build !confonly + package router import ( diff --git a/app/router/condition_geoip.go b/app/router/condition_geoip.go index 0d508dfd..2688bc38 100644 --- a/app/router/condition_geoip.go +++ b/app/router/condition_geoip.go @@ -1,3 +1,5 @@ +// +build !confonly + package router import ( diff --git a/app/router/config.go b/app/router/config.go index 247391f4..46363cce 100644 --- a/app/router/config.go +++ b/app/router/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package router import ( diff --git a/app/router/router.go b/app/router/router.go index 910dd06d..dad69728 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -1,3 +1,5 @@ +// +build !confonly + package router //go:generate errorgen diff --git a/app/stats/command/command.go b/app/stats/command/command.go index 31c9301e..db375a8f 100644 --- a/app/stats/command/command.go +++ b/app/stats/command/command.go @@ -1,3 +1,5 @@ +// +build !confonly + package command //go:generate errorgen diff --git a/app/stats/config.go b/app/stats/config.go index 4e349003..e124b17a 100644 --- a/app/stats/config.go +++ b/app/stats/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package stats import ( diff --git a/app/stats/stats.go b/app/stats/stats.go index c1b66691..d06cc39c 100644 --- a/app/stats/stats.go +++ b/app/stats/stats.go @@ -1,3 +1,5 @@ +// +build !confonly + package stats //go:generate errorgen diff --git a/common/net/connection.go b/common/net/connection.go index 2a1d7309..a035803f 100644 --- a/common/net/connection.go +++ b/common/net/connection.go @@ -1,3 +1,5 @@ +// +build !confonly + package net import ( diff --git a/config.go b/config.go index d03f0673..d328a87b 100755 --- a/config.go +++ b/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package core import ( diff --git a/context.go b/context.go index 2651f3fe..5dd7aee7 100644 --- a/context.go +++ b/context.go @@ -1,3 +1,5 @@ +// +build !confonly + package core import ( diff --git a/functions.go b/functions.go index 6394b3d4..2ea4aa45 100644 --- a/functions.go +++ b/functions.go @@ -1,3 +1,5 @@ +// +build !confonly + package core import ( diff --git a/proxy/dokodemo/dokodemo.go b/proxy/dokodemo/dokodemo.go index cb7f8788..02f7b6fc 100644 --- a/proxy/dokodemo/dokodemo.go +++ b/proxy/dokodemo/dokodemo.go @@ -1,3 +1,5 @@ +// +build !confonly + package dokodemo //go:generate errorgen diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go index 07b70b09..ee21dd5a 100644 --- a/proxy/freedom/freedom.go +++ b/proxy/freedom/freedom.go @@ -1,3 +1,5 @@ +// +build !confonly + package freedom //go:generate errorgen diff --git a/proxy/http/server.go b/proxy/http/server.go index 8ceab253..ba3262bb 100755 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -1,3 +1,5 @@ +// +build !confonly + package http import ( diff --git a/proxy/mtproto/server.go b/proxy/mtproto/server.go index 20771b93..079e453b 100644 --- a/proxy/mtproto/server.go +++ b/proxy/mtproto/server.go @@ -1,3 +1,5 @@ +// +build !confonly + package mtproto import ( diff --git a/proxy/shadowsocks/client.go b/proxy/shadowsocks/client.go index f6b33974..ab5619c5 100644 --- a/proxy/shadowsocks/client.go +++ b/proxy/shadowsocks/client.go @@ -1,3 +1,5 @@ +// +build !confonly + package shadowsocks import ( diff --git a/proxy/shadowsocks/ota.go b/proxy/shadowsocks/ota.go index 59d4c811..33daa9fd 100644 --- a/proxy/shadowsocks/ota.go +++ b/proxy/shadowsocks/ota.go @@ -1,3 +1,5 @@ +// +build !confonly + package shadowsocks import ( diff --git a/proxy/shadowsocks/protocol.go b/proxy/shadowsocks/protocol.go index d8dcff68..8c9d6935 100644 --- a/proxy/shadowsocks/protocol.go +++ b/proxy/shadowsocks/protocol.go @@ -1,3 +1,5 @@ +// +build !confonly + package shadowsocks import ( diff --git a/proxy/shadowsocks/server.go b/proxy/shadowsocks/server.go index 8de8e280..c2d6c118 100644 --- a/proxy/shadowsocks/server.go +++ b/proxy/shadowsocks/server.go @@ -1,3 +1,5 @@ +// +build !confonly + package shadowsocks import ( diff --git a/proxy/socks/client.go b/proxy/socks/client.go index 83dea629..e303e5b3 100644 --- a/proxy/socks/client.go +++ b/proxy/socks/client.go @@ -1,3 +1,5 @@ +// +build !confonly + package socks import ( diff --git a/proxy/socks/config.go b/proxy/socks/config.go index 0d380bd2..f9c617de 100644 --- a/proxy/socks/config.go +++ b/proxy/socks/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package socks import "v2ray.com/core/common/protocol" diff --git a/proxy/socks/protocol.go b/proxy/socks/protocol.go index bb8a024b..ffd04e6e 100644 --- a/proxy/socks/protocol.go +++ b/proxy/socks/protocol.go @@ -1,3 +1,5 @@ +// +build !confonly + package socks import ( diff --git a/proxy/socks/server.go b/proxy/socks/server.go index 6e05bbf2..4e5f46fd 100644 --- a/proxy/socks/server.go +++ b/proxy/socks/server.go @@ -1,3 +1,5 @@ +// +build !confonly + package socks import ( diff --git a/proxy/vmess/inbound/config.go b/proxy/vmess/inbound/config.go index 37e717ba..3d2b8f87 100644 --- a/proxy/vmess/inbound/config.go +++ b/proxy/vmess/inbound/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package inbound // GetDefaultValue returns default settings of DefaultConfig. diff --git a/proxy/vmess/inbound/inbound.go b/proxy/vmess/inbound/inbound.go index 9da341fb..92415718 100644 --- a/proxy/vmess/inbound/inbound.go +++ b/proxy/vmess/inbound/inbound.go @@ -1,3 +1,5 @@ +// +build !confonly + package inbound //go:generate errorgen diff --git a/proxy/vmess/outbound/command.go b/proxy/vmess/outbound/command.go index 94fc1bc1..f46983a4 100644 --- a/proxy/vmess/outbound/command.go +++ b/proxy/vmess/outbound/command.go @@ -1,3 +1,5 @@ +// +build !confonly + package outbound import ( diff --git a/proxy/vmess/outbound/outbound.go b/proxy/vmess/outbound/outbound.go index 4c4c7474..91c80b4f 100644 --- a/proxy/vmess/outbound/outbound.go +++ b/proxy/vmess/outbound/outbound.go @@ -1,3 +1,5 @@ +// +build !confonly + package outbound //go:generate errorgen diff --git a/transport/internet/domainsocket/config.go b/transport/internet/domainsocket/config.go index e389d652..ca80c351 100644 --- a/transport/internet/domainsocket/config.go +++ b/transport/internet/domainsocket/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package domainsocket import ( diff --git a/transport/internet/domainsocket/dial.go b/transport/internet/domainsocket/dial.go index e069c7e5..bd6591de 100644 --- a/transport/internet/domainsocket/dial.go +++ b/transport/internet/domainsocket/dial.go @@ -1,5 +1,6 @@ // +build !windows // +build !wasm +// +build !confonly package domainsocket diff --git a/transport/internet/domainsocket/listener.go b/transport/internet/domainsocket/listener.go index f93402c4..99457e1f 100644 --- a/transport/internet/domainsocket/listener.go +++ b/transport/internet/domainsocket/listener.go @@ -1,5 +1,6 @@ // +build !windows // +build !wasm +// +build !confonly package domainsocket diff --git a/transport/internet/http/config.go b/transport/internet/http/config.go index 89b06dfb..ae50de6a 100644 --- a/transport/internet/http/config.go +++ b/transport/internet/http/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package http import ( diff --git a/transport/internet/http/dialer.go b/transport/internet/http/dialer.go index 130670a3..98187d95 100644 --- a/transport/internet/http/dialer.go +++ b/transport/internet/http/dialer.go @@ -1,3 +1,5 @@ +// +build !confonly + package http import ( diff --git a/transport/internet/http/hub.go b/transport/internet/http/hub.go index 4d85bc1e..1ec53c5d 100644 --- a/transport/internet/http/hub.go +++ b/transport/internet/http/hub.go @@ -1,3 +1,5 @@ +// +build !confonly + package http import ( diff --git a/transport/internet/kcp/config.go b/transport/internet/kcp/config.go index 00a253fc..83086106 100644 --- a/transport/internet/kcp/config.go +++ b/transport/internet/kcp/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/connection.go b/transport/internet/kcp/connection.go index df6f9008..e5227ecd 100644 --- a/transport/internet/kcp/connection.go +++ b/transport/internet/kcp/connection.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/crypt.go b/transport/internet/kcp/crypt.go index 66b7c1e3..35bf55ea 100644 --- a/transport/internet/kcp/crypt.go +++ b/transport/internet/kcp/crypt.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/dialer.go b/transport/internet/kcp/dialer.go index 03df1fbe..55b3922f 100644 --- a/transport/internet/kcp/dialer.go +++ b/transport/internet/kcp/dialer.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/io.go b/transport/internet/kcp/io.go index f04f6f59..a4cb8ed5 100644 --- a/transport/internet/kcp/io.go +++ b/transport/internet/kcp/io.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/listener.go b/transport/internet/kcp/listener.go index c2dba56c..8e141c6b 100644 --- a/transport/internet/kcp/listener.go +++ b/transport/internet/kcp/listener.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/output.go b/transport/internet/kcp/output.go index 470b8e45..5f4a1dc2 100644 --- a/transport/internet/kcp/output.go +++ b/transport/internet/kcp/output.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/receiving.go b/transport/internet/kcp/receiving.go index 0e07ea6e..abdedb9e 100644 --- a/transport/internet/kcp/receiving.go +++ b/transport/internet/kcp/receiving.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/segment.go b/transport/internet/kcp/segment.go index 2d5b1d26..1f3f31db 100755 --- a/transport/internet/kcp/segment.go +++ b/transport/internet/kcp/segment.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/kcp/sending.go b/transport/internet/kcp/sending.go index 23d9ee09..38b12011 100644 --- a/transport/internet/kcp/sending.go +++ b/transport/internet/kcp/sending.go @@ -1,3 +1,5 @@ +// +build !confonly + package kcp import ( diff --git a/transport/internet/quic/config.go b/transport/internet/quic/config.go index 0aab65ee..d9dcff3a 100644 --- a/transport/internet/quic/config.go +++ b/transport/internet/quic/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package quic import ( diff --git a/transport/internet/quic/conn.go b/transport/internet/quic/conn.go index ccc21bb2..7f039fe1 100644 --- a/transport/internet/quic/conn.go +++ b/transport/internet/quic/conn.go @@ -1,3 +1,5 @@ +// +build !confonly + package quic import ( diff --git a/transport/internet/quic/dialer.go b/transport/internet/quic/dialer.go index 5f03a78c..1a382eb1 100644 --- a/transport/internet/quic/dialer.go +++ b/transport/internet/quic/dialer.go @@ -1,3 +1,5 @@ +// +build !confonly + package quic import ( diff --git a/transport/internet/quic/hub.go b/transport/internet/quic/hub.go index 3c17ac0e..11865f69 100644 --- a/transport/internet/quic/hub.go +++ b/transport/internet/quic/hub.go @@ -1,3 +1,5 @@ +// +build !confonly + package quic import ( diff --git a/transport/internet/quic/pool.go b/transport/internet/quic/pool.go index 497cb0c2..2e2032da 100644 --- a/transport/internet/quic/pool.go +++ b/transport/internet/quic/pool.go @@ -1,3 +1,5 @@ +// +build !confonly + package quic import ( diff --git a/transport/internet/quic/quic.go b/transport/internet/quic/quic.go index 6de1d602..1ec3b3cf 100644 --- a/transport/internet/quic/quic.go +++ b/transport/internet/quic/quic.go @@ -1,3 +1,5 @@ +// +build !confonly + package quic import ( diff --git a/transport/internet/tcp/config.go b/transport/internet/tcp/config.go index f98ad3a0..f1bbcebb 100644 --- a/transport/internet/tcp/config.go +++ b/transport/internet/tcp/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package tcp import ( diff --git a/transport/internet/tcp/dialer.go b/transport/internet/tcp/dialer.go index f29fc1e4..241ceb62 100644 --- a/transport/internet/tcp/dialer.go +++ b/transport/internet/tcp/dialer.go @@ -1,3 +1,5 @@ +// +build !confonly + package tcp import ( diff --git a/transport/internet/tcp/hub.go b/transport/internet/tcp/hub.go index 1df60841..15515961 100644 --- a/transport/internet/tcp/hub.go +++ b/transport/internet/tcp/hub.go @@ -1,3 +1,5 @@ +// +build !confonly + package tcp import ( diff --git a/transport/internet/tcp/sockopt_linux.go b/transport/internet/tcp/sockopt_linux.go index d4fbc8de..a5ebca73 100644 --- a/transport/internet/tcp/sockopt_linux.go +++ b/transport/internet/tcp/sockopt_linux.go @@ -1,4 +1,5 @@ // +build linux +// +build !confonly package tcp diff --git a/transport/internet/tcp/sockopt_other.go b/transport/internet/tcp/sockopt_other.go index 5f3e5d14..d7b31851 100644 --- a/transport/internet/tcp/sockopt_other.go +++ b/transport/internet/tcp/sockopt_other.go @@ -1,4 +1,5 @@ // +build !linux +// +build !confonly package tcp diff --git a/transport/internet/tls/config.go b/transport/internet/tls/config.go index 8125476f..27787ff6 100644 --- a/transport/internet/tls/config.go +++ b/transport/internet/tls/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package tls import ( diff --git a/transport/internet/tls/config_other.go b/transport/internet/tls/config_other.go index fc2ae23d..8024803a 100644 --- a/transport/internet/tls/config_other.go +++ b/transport/internet/tls/config_other.go @@ -1,4 +1,5 @@ // +build !windows +// +build !confonly package tls diff --git a/transport/internet/tls/config_windows.go b/transport/internet/tls/config_windows.go index 84f0054e..05d2105c 100644 --- a/transport/internet/tls/config_windows.go +++ b/transport/internet/tls/config_windows.go @@ -1,4 +1,5 @@ // +build windows +// +build !confonly package tls diff --git a/transport/internet/tls/tls.go b/transport/internet/tls/tls.go index bc9d7059..21ab6058 100644 --- a/transport/internet/tls/tls.go +++ b/transport/internet/tls/tls.go @@ -1,3 +1,5 @@ +// +build !confonly + package tls import ( diff --git a/transport/internet/websocket/config.go b/transport/internet/websocket/config.go index 9ec0e0cf..34640e7e 100644 --- a/transport/internet/websocket/config.go +++ b/transport/internet/websocket/config.go @@ -1,3 +1,5 @@ +// +build !confonly + package websocket import ( diff --git a/transport/internet/websocket/connection.go b/transport/internet/websocket/connection.go index 59eec03e..55be82d8 100644 --- a/transport/internet/websocket/connection.go +++ b/transport/internet/websocket/connection.go @@ -1,3 +1,5 @@ +// +build !confonly + package websocket import ( diff --git a/transport/internet/websocket/dialer.go b/transport/internet/websocket/dialer.go index 3d4fab6c..b3049ab6 100644 --- a/transport/internet/websocket/dialer.go +++ b/transport/internet/websocket/dialer.go @@ -1,3 +1,5 @@ +// +build !confonly + package websocket import ( diff --git a/transport/internet/websocket/hub.go b/transport/internet/websocket/hub.go index c0191609..c7c45b81 100644 --- a/transport/internet/websocket/hub.go +++ b/transport/internet/websocket/hub.go @@ -1,3 +1,5 @@ +// +build !confonly + package websocket import ( diff --git a/v2ray.go b/v2ray.go index 7d3beeb6..9b47b368 100755 --- a/v2ray.go +++ b/v2ray.go @@ -1,3 +1,5 @@ +// +build !confonly + package core import (