Comments (6)
I assume sslh's is more broad due to more extensive testing. (I just implemented OpenVPN based on two clients' packets.) I'll look into it.
from protoplex.
Thanks for checking.
Unfortunalty i receive strange errors:
root@fw:~ # /root/protoplex.exe -bind 192.168.81.254:443 -http localhost:80 -tls localhost:443 -ovpn localhost:1194 -verbose
panic: regexp: Compile("^\x00[\r-\xff]8"): error parsing regexp: invalid UTF-8: `�]8`
goroutine 1 [running]:
regexp.MustCompile(0x5527dd, 0x8, 0x3)
/usr/lib/go-1.12/src/regexp/regexp.go:272 +0x159
github.com/Pandentia/protoplex/protoplex/protocols.NewOpenVPNProtocol(0x67184ab54b99, 0xe, 0x7)
In a Golang Regex Example a saw that they used "`" (backtick) instead of double quotes.
I tried it and it doesn't throw an error.
MatchRegexes: []*regexp.Regexp{
regexp.MustCompile(`^\x00\x0D-\xFF\x38`), // asumming this variant is more common in newer clients
regexp.MustCompile(`^\x00\x0D-\xFF$`),
},
from protoplex.
Yup, just noticed that too. The issue (I think) is that I forgot how to do regex, as I haven't used it in months. I forgot square brackets around the range specifier. Pushing a new commit soon.
from protoplex.
Surprisingly, it isn't (though that would've been an issue too). Golang's regex library doesn't seem to be happy with me using \x notation. I'll look into it.
from protoplex.
Should be fixed in 8f634e6. Sorry for the trouble, it's been a while since I worked with Go's regex.
from protoplex.
Thx. That works :)
from protoplex.
Related Issues (6)
- MTPROTO Support HOT 4
- UDP/ DTLS HOT 7
- Support for the RDP protocol
- [Protocols] Wireguard support. HOT 1
- Fallback Protocol HOT 1
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 protoplex.