Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var (
logLevel = flag.String("loglevel", "", "loglevel for v2ray: debug, info, warning (default), error, none.")
version = flag.Bool("version", false, "Show current version of v2ray-plugin")
fwmark = flag.Int("fwmark", 0, "Set SO_MARK option for outbound sockets.")
allowInsecure = flag.Int("allowInsecure", 0, "Set SO_MARK option for outbound sockets.")
)

func homeDir() string {
Expand Down Expand Up @@ -177,6 +178,9 @@ func generateConfig() (*core.Config, error) {
}
if *tlsEnabled {
tlsConfig := tls.Config{ServerName: *host}
if *allowInsecure {
tlsConfig.AllowInsecure = true
}
if *server {
certificate := tls.Certificate{}
if *cert == "" && *certRaw == "" {
Expand Down