Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cellframe-ui-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
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
cellframe
cellframe-ui-sdk
Commits
9db15afc
Commit
9db15afc
authored
4 years ago
by
Alexandr Mruchok
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.demlabs.net/cellframe/cellframe-ui-sdk
parents
13278f26
cd044698
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stream/ch/chain/net/srv/vpn/DapStreamChChainNetSrvVpn.cpp
+7
-1
7 additions, 1 deletion
stream/ch/chain/net/srv/vpn/DapStreamChChainNetSrvVpn.cpp
stream/ch/chain/net/srv/vpn/DapStreamChChainNetSrvVpn.h
+8
-0
8 additions, 0 deletions
stream/ch/chain/net/srv/vpn/DapStreamChChainNetSrvVpn.h
with
15 additions
and
1 deletion
stream/ch/chain/net/srv/vpn/DapStreamChChainNetSrvVpn.cpp
+
7
−
1
View file @
9db15afc
...
@@ -410,7 +410,13 @@ void ChChainNetSrvVpn::onPktIn(DapChannelPacket* pkt)
...
@@ -410,7 +410,13 @@ void ChChainNetSrvVpn::onPktIn(DapChannelPacket* pkt)
delete
pkt
;
delete
pkt
;
}
}
void
ChChainNetSrvVpn
::
saveCurrentServer
(
const
DapServerInfoList
&
nodelist
)
{
for
(
auto
server
:
nodelist
)
{
if
(
server
.
address
==
upstreamAddress
()
&&
server
.
name
!=
"Auto"
)
m_currentServer
=
server
;
}
}
...
...
This diff is collapsed.
Click to expand it.
stream/ch/chain/net/srv/vpn/DapStreamChChainNetSrvVpn.h
+
8
−
0
View file @
9db15afc
...
@@ -89,6 +89,9 @@ namespace Dap {
...
@@ -89,6 +89,9 @@ namespace Dap {
// METHODS
// METHODS
QString
m_addr
,
m_gw
;
QString
m_addr
,
m_gw
;
QTcpServer
*
m_fdListener
;
QTcpServer
*
m_fdListener
;
DapServerInfo
m_currentServer
;
private
slots
:
private
slots
:
void
onFwServerConnected
();
void
onFwServerConnected
();
void
onFwClientReadyRead
();
void
onFwClientReadyRead
();
...
@@ -114,6 +117,9 @@ namespace Dap {
...
@@ -114,6 +117,9 @@ namespace Dap {
tun
->
addNewUpstreamRoute
(
a_dest
);
tun
->
addNewUpstreamRoute
(
a_dest
);
}
}
QString
upstreamAddress
(){
return
tun
->
upstreamAddress
();}
DapServerInfo
currentServer
(){
return
m_currentServer
;}
void
tunCreate
(
const
QString
&
a_addr
,
const
QString
&
a_gw
);
void
tunCreate
(
const
QString
&
a_addr
,
const
QString
&
a_gw
);
void
workerStart
(
int
a_tunSocket
);
void
workerStart
(
int
a_tunSocket
);
int
tunSocket
();
int
tunSocket
();
...
@@ -143,6 +149,8 @@ namespace Dap {
...
@@ -143,6 +149,8 @@ namespace Dap {
void
tunCreate
();
// create with all predefined before values
void
tunCreate
();
// create with all predefined before values
void
tunDestroy
();
void
tunDestroy
();
void
tunStandby
();
void
tunStandby
();
void
saveCurrentServer
(
const
DapServerInfoList
&
nodelist
);
};
};
}
}
...
...
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