Skip to content

Commit

Permalink
Merge branch 'master' of github.com:/v2fly/v2ray-core
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascw committed Jun 1, 2020
2 parents 82ae56e + a1e4c9b commit 669b889
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 31 deletions.
7 changes: 4 additions & 3 deletions app/dispatcher/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
return
}

accessMessage := log.AccessMessageFromContext(ctx)
if accessMessage != nil {
accessMessage.Detour = "[" + handler.Tag() + "]"
if accessMessage := log.AccessMessageFromContext(ctx); accessMessage != nil {
if tag := handler.Tag(); tag != "" {
accessMessage.Detour = tag
}
log.Record(accessMessage)
}

Expand Down
2 changes: 1 addition & 1 deletion release/install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ main(){
RETVAL="$?"
if [[ $RETVAL == 0 ]] && [[ "$FORCE" != "1" ]]; then
colorEcho ${BLUE} "Latest version ${CUR_VER} is already installed."
if [[ "${ERROR_IF_UPTODATE}" == "1" ]]; then
if [ -n "${ERROR_IF_UPTODATE}" ]; then
return 10
fi
return
Expand Down
10 changes: 1 addition & 9 deletions release/user-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ packtgzAbPath() {
echo ">>> Generated: $ABPATH"
}

packtgzAbPath() {
local ABPATH="$1"
echo ">>> Generating tgz package at $ABPATH"
pushd $TMP
tar cvfz $ABPATH .
echo ">>> Generated: $ABPATH"
}


pkg=zip
nosource=0
Expand Down Expand Up @@ -169,7 +161,7 @@ if [[ $pkg == "zip" ]]; then
elif [[ $pkg == "tgz" ]]; then
packtgz
else
packtgzAbPath $pkg
packtgzAbPath "$pkg"
fi


Expand Down
20 changes: 2 additions & 18 deletions transport/internet/tls/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,24 +187,8 @@ func (c *Config) GetTLSConfig(opts ...Option) *tls.Config {
}

if !c.AllowInsecureCiphers && len(config.CipherSuites) == 0 {
config.CipherSuites = []uint16{
tls.TLS_AES_128_GCM_SHA256,
tls.TLS_AES_256_GCM_SHA384,
tls.TLS_CHACHA20_POLY1305_SHA256,

tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
}
// crypto/tls will use the proper ciphers
config.CipherSuites = nil
}

config.InsecureSkipVerify = c.AllowInsecure
Expand Down

0 comments on commit 669b889

Please sign in to comment.