Skip to content

Commit 669b889

Browse files
committed
Merge branch 'master' of github.com:/v2fly/v2ray-core
2 parents 82ae56e + a1e4c9b commit 669b889

File tree

4 files changed

+8
-31
lines changed

4 files changed

+8
-31
lines changed

app/dispatcher/default.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,10 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
288288
return
289289
}
290290

291-
accessMessage := log.AccessMessageFromContext(ctx)
292-
if accessMessage != nil {
293-
accessMessage.Detour = "[" + handler.Tag() + "]"
291+
if accessMessage := log.AccessMessageFromContext(ctx); accessMessage != nil {
292+
if tag := handler.Tag(); tag != "" {
293+
accessMessage.Detour = tag
294+
}
294295
log.Record(accessMessage)
295296
}
296297

release/install-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ main(){
447447
RETVAL="$?"
448448
if [[ $RETVAL == 0 ]] && [[ "$FORCE" != "1" ]]; then
449449
colorEcho ${BLUE} "Latest version ${CUR_VER} is already installed."
450-
if [[ "${ERROR_IF_UPTODATE}" == "1" ]]; then
450+
if [ -n "${ERROR_IF_UPTODATE}" ]; then
451451
return 10
452452
fi
453453
return

release/user-package.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,6 @@ packtgzAbPath() {
8686
echo ">>> Generated: $ABPATH"
8787
}
8888

89-
packtgzAbPath() {
90-
local ABPATH="$1"
91-
echo ">>> Generating tgz package at $ABPATH"
92-
pushd $TMP
93-
tar cvfz $ABPATH .
94-
echo ">>> Generated: $ABPATH"
95-
}
96-
9789

9890
pkg=zip
9991
nosource=0
@@ -169,7 +161,7 @@ if [[ $pkg == "zip" ]]; then
169161
elif [[ $pkg == "tgz" ]]; then
170162
packtgz
171163
else
172-
packtgzAbPath $pkg
164+
packtgzAbPath "$pkg"
173165
fi
174166

175167

transport/internet/tls/config.go

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -187,24 +187,8 @@ func (c *Config) GetTLSConfig(opts ...Option) *tls.Config {
187187
}
188188

189189
if !c.AllowInsecureCiphers && len(config.CipherSuites) == 0 {
190-
config.CipherSuites = []uint16{
191-
tls.TLS_AES_128_GCM_SHA256,
192-
tls.TLS_AES_256_GCM_SHA384,
193-
tls.TLS_CHACHA20_POLY1305_SHA256,
194-
195-
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
196-
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
197-
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
198-
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
199-
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
200-
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
201-
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,
202-
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
203-
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,
204-
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
205-
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
206-
tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
207-
}
190+
// crypto/tls will use the proper ciphers
191+
config.CipherSuites = nil
208192
}
209193

210194
config.InsecureSkipVerify = c.AllowInsecure

0 commit comments

Comments
 (0)