Skip to content
forked from dosgo/ngrok-c

ngrok client for c language,Due to the use of GO ngrok language development, porting to embedded devices some inconvenience, such as openwrt, so use C language rewrite a client. Very mini, the need to support polarssl library.

Notifications You must be signed in to change notification settings

enet-jade/ngrok-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##ngrok-c

  • ngrok client for c language.
  • Before compiling you need to generate libpolarssl.a static library Reference polarssl official website.
  • No copyright, piracy welcome, any questions contact email [email protected].

##build

ddns.cpp with https.cpp not used.

#windows Build.bat run in cmd.

#linux Because not use makefile, so write a script sh compile, run build.sh

#openwrt run openwrtbuild.sh

##use

ngrok-polarssl -SER[Shost:ngrokd.ngrok.com,Sport:443,Atoken:xxx] -AddTun[Type:http,Lhost:127.0.0.1,Lport:80,Sdname:xxdosgo]

Shost -Server host.
Sport -server port.
Atoken -ngrok authtoken.

type -tcp or http or https.
Lhost -local address.
Lport -local port.
sdname -Subdomain.

##Example

  • ngrokc -SER[Shost:ngrokd.ngrok.com,Sport:443] -AddTun[Type:http,Lhost:127.0.0.1,Lport:80,Sdname:Example]
  • ngrokc -AddTun[Type:http,Lhost:127.0.0.1,Lport:80,Sdname:Example]

You can also register multiple Tunnel, but can only have one of each type.

  • ngrokc -AddTun[Type:http,Lhost:127.0.0.1,Lport:80,Sdname:Example] -AddTun[Type:https,Lhost:127.0.0.1,Lport:81,Sdname:Example1]

About

ngrok client for c language,Due to the use of GO ngrok language development, porting to embedded devices some inconvenience, such as openwrt, so use C language rewrite a client. Very mini, the need to support polarssl library.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 73.0%
  • C++ 26.3%
  • Other 0.7%