Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
35
Issues
35
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赤子奈落
MDPro3
Commits
6ef40eb6
Commit
6ef40eb6
authored
Jul 20, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable local connection only restriction when Pro2 support is enabled
parent
81a5e2f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Tools/YGO Classes/ygoserver/netserver.cpp
Tools/YGO Classes/ygoserver/netserver.cpp
+4
-4
No files found.
Tools/YGO Classes/ygoserver/netserver.cpp
View file @
6ef40eb6
...
@@ -88,11 +88,11 @@ bool NetServer::StartServer(unsigned short port) {
...
@@ -88,11 +88,11 @@ bool NetServer::StartServer(unsigned short port) {
memset
(
&
sin
,
0
,
sizeof
(
sin
));
memset
(
&
sin
,
0
,
sizeof
(
sin
));
server_port
=
port
;
server_port
=
port
;
sin
.
sin_family
=
AF_INET
;
sin
.
sin_family
=
AF_INET
;
#ifdef SERVER_PRO2_SUPPORT
//
#ifdef SERVER_PRO2_SUPPORT
sin
.
sin_addr
.
s_addr
=
htonl
(
INADDR_LOOPBACK
);
//
sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
#else
//
#else
sin
.
sin_addr
.
s_addr
=
htonl
(
INADDR_ANY
);
sin
.
sin_addr
.
s_addr
=
htonl
(
INADDR_ANY
);
#endif
//
#endif
sin
.
sin_port
=
htons
(
port
);
sin
.
sin_port
=
htons
(
port
);
listener
=
evconnlistener_new_bind
(
net_evbase
,
ServerAccept
,
NULL
,
listener
=
evconnlistener_new_bind
(
net_evbase
,
ServerAccept
,
NULL
,
LEV_OPT_CLOSE_ON_FREE
|
LEV_OPT_REUSEABLE
,
-
1
,
(
sockaddr
*
)
&
sin
,
sizeof
(
sin
));
LEV_OPT_CLOSE_ON_FREE
|
LEV_OPT_REUSEABLE
,
-
1
,
(
sockaddr
*
)
&
sin
,
sizeof
(
sin
));
...
...
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