Add "dev-type tun" to local options

Plus other hardcoded options like key-method and tls-client.

Seems that older OpenVPN servers didn't send routing info in
PUSH_REPLY if dev-type is not specified explicitly.

Fixes #86
This commit is contained in:
Davide De Rosa 2019-04-18 13:08:09 +02:00
parent 95ba9dacdb
commit c565e32dcd
2 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- SoftEther sends an incomplete PUSH_REPLY. [#86](https://github.com/keeshux/tunnelkit/issues/86)
## 1.6.2 (2019-04-17) ## 1.6.2 (2019-04-17)
### Added ### Added

View File

@ -97,9 +97,12 @@ extension SessionProxy {
// options string // options string
var opts = [ var opts = [
"V4", "V4",
"dev-type tun",
"cipher \(options.fallbackCipher.rawValue)", "cipher \(options.fallbackCipher.rawValue)",
"auth \(options.fallbackDigest.rawValue)", "auth \(options.fallbackDigest.rawValue)",
"keysize \(options.fallbackCipher.keySize)" "keysize \(options.fallbackCipher.keySize)",
"key-method 2",
"tls-client"
] ]
if let comp = options.compressionFraming { if let comp = options.compressionFraming {
switch comp { switch comp {