Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ginkgo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vjrj
ginkgo
Commits
2485a5fa
Commit
2485a5fa
authored
1 year ago
by
vjrj
Browse files
Options
Downloads
Patches
Plain Diff
Custom dns and http checks to try to fix VNP connectivy check
#45
parent
19996e33
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/ui/widgets/connectivity_widget_wrapper_wrapper.dart
+74
-1
74 additions, 1 deletion
lib/ui/widgets/connectivity_widget_wrapper_wrapper.dart
with
74 additions
and
1 deletion
lib/ui/widgets/connectivity_widget_wrapper_wrapper.dart
+
74
−
1
View file @
2485a5fa
import
'dart:io'
;
import
'package:connectivity_wrapper/connectivity_wrapper.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
@@ -13,7 +15,78 @@ class ConnectivityWidgetWrapperWrapper extends ConnectivityWidgetWrapper {
super
.
disableInteraction
,
super
.
message
,
super
.
height
})
:
super
(
offlineWidget:
isIOS
?
child
:
offlineWidget
);
:
super
(
offlineWidget:
isIOS
?
child
:
offlineWidget
)
{
ConnectivityWrapper
.
instance
.
addresses
=
kIsWeb
?
<
AddressCheckOptions
>[]
:
List
<
AddressCheckOptions
>
.
unmodifiable
(
<
AddressCheckOptions
>[
AddressCheckOptions
(
hostname:
'duniter.org'
,
port:
443
,
),
AddressCheckOptions
(
hostname:
'moneda-libre.org'
,
port:
443
,
),
// Cloudflare
AddressCheckOptions
(
address:
InternetAddress
(
'1.1.1.1'
,
type:
InternetAddressType
.
IPv4
,
),
),
// Cloudflare IPv6
AddressCheckOptions
(
address:
InternetAddress
(
'2606:4700:4700::1111'
,
type:
InternetAddressType
.
IPv6
,
),
),
// OpenDNS
AddressCheckOptions
(
address:
InternetAddress
(
'208.67.222.222'
,
type:
InternetAddressType
.
IPv4
,
),
),
// OpenDNS IPv6
AddressCheckOptions
(
address:
InternetAddress
(
'2620:0:ccc::2'
,
type:
InternetAddressType
.
IPv6
,
),
),
// Quad9 IPv4
AddressCheckOptions
(
address:
InternetAddress
(
'9.9.9.9'
,
type:
InternetAddressType
.
IPv4
,
),
),
// Quad9 IPv6
AddressCheckOptions
(
address:
InternetAddress
(
'2620:fe::fe'
,
type:
InternetAddressType
.
IPv6
,
),
),
// DNS.Watch IPv4
AddressCheckOptions
(
address:
InternetAddress
(
'84.200.69.80'
,
type:
InternetAddressType
.
IPv4
,
),
),
// DNS.Watch IPv6
AddressCheckOptions
(
address:
InternetAddress
(
'2001:1608:10:25::1c04:b12f'
,
type:
InternetAddressType
.
IPv6
,
),
),
],
);
}
// This package does not work in IOS so we just return true
// Also does not detect well in web production mode
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment