-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from openziti/issue-135-add-ip-intercept
Issue 135 add ip intercept
- Loading branch information
Showing
10 changed files
with
149 additions
and
187 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set SVC_ROOT_DIR=%~dp0 | ||
SET TUNNELER_SDK_DIR=%SVC_ROOT_DIR%deps\ziti-tunneler-sdk-c\ | ||
SET CGO_CFLAGS=-DNOGDI -I %TUNNELER_SDK_DIR%install\include | ||
SET CGO_LDFLAGS=-L %TUNNELER_SDK_DIR%install\lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package api | ||
|
||
import "net" | ||
|
||
type DesktopEdgeIface interface { | ||
AddRoute(destination net.IPNet, nextHop net.IP, metric uint32) error | ||
RemoveRoute(destination net.IPNet, nextHop net.IP) error | ||
|
||
InterceptDNS() | ||
ReleaseDNS() | ||
|
||
InterceptIP() | ||
ReleaseIP() | ||
|
||
Close() | ||
} | ||
|
||
type DesktopEdgeManager interface { | ||
AddIdentity() | ||
RemoveIdentity() | ||
Status() | ||
TunnelState() | ||
IdentityToggle() | ||
SetLogLevel() | ||
Debug() | ||
SaveState() | ||
CreateTun() | ||
FindIdentity() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.