Comments (6)
You need to specify the
client.toml
to the argument part, not the path.
I have updated to this, but still same result.
from rathole.
As I said above, you actually just need:
You need to specify the
client.toml
to the argument part, not the path.
Like this:
Is that hard to understand? And just like @ZhiShengYuan said, try to read the documentation first, don't assume you found a bug or something.
from rathole.
You need to specify the client.toml
to the argument part, not the path.
from rathole.
You need to specify the
client.toml
to the argument part, not the path.I have updated to this, but still same result.
Reading the NSSM manual sounds like a good step. It's always helpful to refer to the official documentation for detailed information. Additionally, reaching out to someone familiar with this software could provide valuable insights or tips. Let's explore both avenues to resolve this issue efficiently.
from rathole.
Fixed by writing a C++ for calling rathole, instead of calling it directly from nssm.
#include <iostream>
#include <string>
#include <windows.h>
int main() {
std::string command_line = "C:\\HoangVPN\\rathole.exe C:\\HoangVPN\\client.toml";
STARTUPINFO si;
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
PROCESS_INFORMATION pi;
memset(&pi, 0, sizeof(pi));
if (!CreateProcess(NULL, const_cast<char*>(command_line.c_str()), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
std::cerr << "Error creating process: " << GetLastError() << std::endl;
return 1;
}
WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
return 0;
}
from rathole.
As I said above, you actually just need:
You need to specify the
client.toml
to the argument part, not the path.Like this:
Is that hard to understand? And just like @ZhiShengYuan said, try to read the documentation first, don't assume you found a bug or something.
Thanks, it works like charm.
from rathole.
Related Issues (20)
- Fail to build HOT 1
- FreeBSD amd64 , ARM64
- Better Error Handling and Error Messages
- Compiling fails on FreeBSD when the websocket-rustls feature is enabled HOT 10
- Renovate the release github action
- add aarch64-apple-darwin binary release
- Potential compatibility issue of PKCS#12 format
- why is the rathole connection easily broken? HOT 7
- 不太稳定
- Binding to unix sockets
- Instant SIGKILL (a genuine stumper) HOT 7
- OpenBSD 7.4 with LibreSSL 3.8.2 doesn't compile HOT 1
- Unable to connect - Failed to deserialize hello: invalid value: integer `100466709`, expected variant index 0 <= i < 2 HOT 2
- traffic compression function, udp/tcp.
- Tunnel failure and Interruption when adding a new port HOT 1
- Can't run on Windows Server 2008 R2 HOT 2
- Connection dies after logging out from ssh HOT 1
- Rathole config watcher doesn't work with symlinks HOT 1
- Allow paths in remote_addr for websocket connections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rathole.