Skip to content

Commit f4b7550

Browse files
committed
actual working version
1 parent e6912b4 commit f4b7550

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ koxxy is published to Maven Central. Add the dependency to your `build.gradle.kt
1212

1313
```kotlin
1414
dependencies {
15-
implementation("digital.guimauve.koxxy:core:0.1.0")
15+
implementation("digital.guimauve.koxxy:core:1.0.0")
1616
}
1717
```
1818

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55

66
allprojects {
77
group = "digital.guimauve.koxxy"
8-
version = "0.1.0"
8+
version = "1.0.0"
99

1010
repositories {
1111
mavenCentral()

core/src/commonMain/kotlin/digital/guimauve/koxxy/Socks5ProxyServer.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ internal class Socks5ProxyServer(
5656

5757
// Read request
5858
val req = input.readNBytes(4)
59-
val cmd = req[1].toInt()
60-
val atyp = input.read()
59+
val atyp = req[3].toInt()
6160

6261
val destHost = when (atyp) {
6362
0x01 -> InetAddress.getByAddress(input.readNBytes(4)).hostAddress // IPv4

0 commit comments

Comments
 (0)