Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
c5554cdf
Unverified
Commit
c5554cdf
authored
Apr 25, 2020
by
Jonah Williams
Committed by
GitHub
Apr 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] remove trailing eth info from fuchsia package server (#55617)
parent
de8cf8b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
fuchsia_pm.dart
packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart
+11
-1
fuchsia_pm_test.dart
...ter_tools/test/general.shard/fuchsia/fuchsia_pm_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart
View file @
c5554cdf
...
...
@@ -180,7 +180,17 @@ class FuchsiaPM {
/// server.stop();
/// }
class
FuchsiaPackageServer
{
FuchsiaPackageServer
(
this
.
_repo
,
this
.
name
,
this
.
_host
,
this
.
_port
);
factory
FuchsiaPackageServer
(
String
repo
,
String
name
,
String
host
,
int
port
)
{
// TODO(jonahwilliams): ensure we only receive valid ipv4 or ipv6 InternetAddresses.
// Temporary work around to receiving ipv6 addresses with trailing information:
// fe80::ec4:7aff:fecc:ea8f%eno2
if
(
host
.
contains
(
'%'
))
{
host
=
host
.
split
(
'%'
).
first
;
}
return
FuchsiaPackageServer
.
_
(
repo
,
name
,
host
,
port
);
}
FuchsiaPackageServer
.
_
(
this
.
_repo
,
this
.
name
,
this
.
_host
,
this
.
_port
);
static
const
String
deviceHost
=
'fuchsia.com'
;
static
const
String
toolHost
=
'flutter_tool'
;
...
...
packages/flutter_tools/test/general.shard/fuchsia/fuchsia_pm_test.dart
View file @
c5554cdf
...
...
@@ -78,7 +78,7 @@ void main() {
expect
(
FuchsiaPackageServer
(
'a'
,
'b'
,
host
,
port
).
url
,
'http://[fe80::ec4:7aff:fecc:ea8f
%25eno2
]:23'
,
'http://[fe80::ec4:7aff:fecc:ea8f]:23'
,
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment