Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 975c9217
authored
2025-09-10 18:13:08 +0800
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
端口调整
1 parent
f4cbcf78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/services/local_server_service.dart
lib/services/local_server_service.dart
View file @
975c921
...
...
@@ -6,7 +6,7 @@ import 'package:flutter/services.dart';
class
LocalServerService
{
// 启动本地HTTP服务器
Future
<
HttpServer
>
startLocalServer
()
async
{
HttpServer
server
=
await
HttpServer
.
bind
(
InternetAddress
.
loopbackIPv4
,
0
);
HttpServer
server
=
await
HttpServer
.
bind
(
InternetAddress
.
loopbackIPv4
,
35982
);
print
(
'本地服务器启动在端口:
${server.port}
'
);
server
.
listen
((
HttpRequest
request
)
async
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment