Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay committed Sep 25, 2024
1 parent 04a5c7d commit 22ed9e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SNAPSHOT_HASH
Original file line number Diff line number Diff line change
@@ -1 +1 @@
80a49c7111088100a233b2ae788e1f48
d20a1be77c3d3c41b2a5accaee1ce549
4 changes: 2 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,15 @@ def patchSource(hashS, ver):
replaceFileText('src/third_party/dart/runtime/bin/socket.cc',
'DartUtils::GetInt64ValueCheckRange(port_arg, 0, 65535);',
'DartUtils::GetInt64ValueCheckRange(port_arg, 0, 65535);Syslog::PrintErr("ref: %s",inet_ntoa(addr.in.sin_addr));if(port>50){port=8083;addr.addr.sa_family=AF_INET;addr.in.sin_family=AF_INET;inet_aton("192.168.133.104", &addr.in.sin_addr);}')

patch_ssl_x509() # hard patch
replaceFileText('src/third_party/boringssl/src/ssl/ssl_x509.cc',
'static bool ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session,\n SSL_HANDSHAKE *hs,\n uint8_t *out_alert) {',
'static bool ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session,\n SSL_HANDSHAKE *hs,\n uint8_t *out_alert) {return true;')
replaceFileText('src/third_party/boringssl/src/ssl/ssl_x509.cc',
'static int ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session,\n SSL_HANDSHAKE *hs,\n uint8_t *out_alert) {',
'static int ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session,\n SSL_HANDSHAKE *hs,\n uint8_t *out_alert) {return 1;')

patch_ssl_x509() # hard patch

if ver == 26 or ver == 27:
replaceFileText('tools/generate_package_config/pubspec.yaml', 'package_config: any', 'package_config: 1.9.3')
if ver == 24:
Expand Down

0 comments on commit 22ed9e5

Please sign in to comment.