Skip to content

Commit

Permalink
optimize v2ctl size
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Feb 1, 2019
1 parent 3b02c02 commit 1ab94fe
Show file tree
Hide file tree
Showing 83 changed files with 160 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/commander/commander.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package commander

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/commander/outbound.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package commander

import (
Expand Down
2 changes: 2 additions & 0 deletions app/commander/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package commander

import (
Expand Down
2 changes: 2 additions & 0 deletions app/dispatcher/default.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dispatcher

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dispatcher

import "context"
Expand Down
2 changes: 2 additions & 0 deletions app/dispatcher/sniffer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dispatcher

import (
Expand Down
2 changes: 2 additions & 0 deletions app/dispatcher/stats.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dispatcher

import (
Expand Down
2 changes: 2 additions & 0 deletions app/dns/hosts.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dns

import (
Expand Down
2 changes: 2 additions & 0 deletions app/dns/nameserver.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dns

import (
Expand Down
2 changes: 2 additions & 0 deletions app/dns/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dns

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/dns/udpns.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dns

import (
Expand Down
2 changes: 2 additions & 0 deletions app/log/command/command.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package command

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/log/log.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package log

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/log/log_creator.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package log

import (
Expand Down
2 changes: 2 additions & 0 deletions app/proxyman/command/command.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package command

import (
Expand Down
2 changes: 2 additions & 0 deletions app/reverse/bridge.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package reverse

import (
Expand Down
2 changes: 2 additions & 0 deletions app/reverse/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package reverse

import (
Expand Down
2 changes: 2 additions & 0 deletions app/reverse/portal.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package reverse

import (
Expand Down
2 changes: 2 additions & 0 deletions app/reverse/reverse.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package reverse

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/router/balancing.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package router

import (
Expand Down
2 changes: 2 additions & 0 deletions app/router/condition.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package router

import (
Expand Down
2 changes: 2 additions & 0 deletions app/router/condition_geoip.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package router

import (
Expand Down
2 changes: 2 additions & 0 deletions app/router/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package router

import (
Expand Down
2 changes: 2 additions & 0 deletions app/router/router.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package router

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/stats/command/command.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package command

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions app/stats/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package stats

import (
Expand Down
2 changes: 2 additions & 0 deletions app/stats/stats.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package stats

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions common/net/connection.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package net

import (
Expand Down
2 changes: 2 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package core

import (
Expand Down
2 changes: 2 additions & 0 deletions context.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package core

import (
Expand Down
2 changes: 2 additions & 0 deletions functions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package core

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/dokodemo/dokodemo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package dokodemo

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions proxy/freedom/freedom.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package freedom

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions proxy/http/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package http

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/mtproto/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package mtproto

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/shadowsocks/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package shadowsocks

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/shadowsocks/ota.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package shadowsocks

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/shadowsocks/protocol.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package shadowsocks

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/shadowsocks/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package shadowsocks

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/socks/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package socks

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/socks/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package socks

import "v2ray.com/core/common/protocol"
Expand Down
2 changes: 2 additions & 0 deletions proxy/socks/protocol.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package socks

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/socks/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package socks

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/vmess/inbound/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package inbound

// GetDefaultValue returns default settings of DefaultConfig.
Expand Down
2 changes: 2 additions & 0 deletions proxy/vmess/inbound/inbound.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package inbound

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions proxy/vmess/outbound/command.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package outbound

import (
Expand Down
2 changes: 2 additions & 0 deletions proxy/vmess/outbound/outbound.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package outbound

//go:generate errorgen
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/domainsocket/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package domainsocket

import (
Expand Down
1 change: 1 addition & 0 deletions transport/internet/domainsocket/dial.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// +build !windows
// +build !wasm
// +build !confonly

package domainsocket

Expand Down
1 change: 1 addition & 0 deletions transport/internet/domainsocket/listener.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// +build !windows
// +build !wasm
// +build !confonly

package domainsocket

Expand Down
2 changes: 2 additions & 0 deletions transport/internet/http/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package http

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/http/dialer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package http

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/http/hub.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package http

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/connection.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/crypt.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/dialer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/io.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/listener.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/output.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/receiving.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/segment.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/kcp/sending.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package kcp

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/quic/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package quic

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/quic/conn.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package quic

import (
Expand Down
2 changes: 2 additions & 0 deletions transport/internet/quic/dialer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !confonly

package quic

import (
Expand Down
Loading

0 comments on commit 1ab94fe

Please sign in to comment.