Skip to content

Commit

Permalink
Use Flower Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
consuelita committed Jul 26, 2022
1 parent e96de39 commit 7cb036a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion moonbounceVPNService/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'com.github.OperatorFoundation:FlowerAndroid:1.0.17'
implementation 'com.github.OperatorFoundation:FlowerAndroid:1.0.18'
implementation 'com.github.OperatorFoundation:TransmissionAndroid:1.0.17'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MBAKVpnService: VpnService()
val transmissionConnection = TransmissionConnection(transportServerIP, transportServerPort, ConnectionType.TCP, null)
protect(transmissionConnection.tcpConnection!!)

flowerConnection = FlowerConnection(transmissionConnection, null)
flowerConnection = FlowerConnection(transmissionConnection, null, true, true)
parcelFileDescriptor = handshake(flowerConnection!!)

if (parcelFileDescriptor == null)
Expand All @@ -67,18 +67,11 @@ class MBAKVpnService: VpnService()
outputStream = FileOutputStream(parcelFileDescriptor!!.fileDescriptor)
inputStream = FileInputStream(parcelFileDescriptor!!.fileDescriptor)

println(">>>>>>>>>>>>>>> UDP test before ServerToVPN")
//NetworkTests().udpTest(transportServerIP, 2233)
println(">>>>>>>>>>>>>>> UDP test end")

println("ð MBAKVpnService: starting ServerToVPN loop")
thread(start = true)
{
runServerToVPN()
}
println(">>>>>>>>>>>>>>> UDP test before VPNtoServer")
//NetworkTests().udpTest(transportServerIP, 2233)
println(">>>>>>>>>>>>>>> UDP test end")

println("🌙 MBAKVpnService: starting VPNtoServer loop")
thread(start = true)
Expand Down

0 comments on commit 7cb036a

Please sign in to comment.