ssrlive
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
1 deletions
-
.github/workflows/publish-exe.yml
-
src/lib.rs
|
|
|
@ -69,6 +69,9 @@ jobs: |
|
|
|
powershell Compress-Archive -Path target/${{ matrix.target }}/release/tun2proxy.exe, README.md, target/tun2proxy-ffi.h, target/${{ matrix.target }}/release/tun2proxy.dll, target/${{ matrix.target }}/release/wintun.dll -DestinationPath mypubdir4/tun2proxy-${{ matrix.target }}.zip |
|
|
|
elif [[ "${{ matrix.host_os }}" == "macos-latest" ]]; then |
|
|
|
zip -j mypubdir4/tun2proxy-${{ matrix.target }}.zip target/${{ matrix.target }}/release/tun2proxy README.md target/tun2proxy-ffi.h target/${{ matrix.target }}/release/libtun2proxy.dylib |
|
|
|
./build-apple.sh |
|
|
|
mv ./target/Tun2Proxy.xcframework . |
|
|
|
zip -r mypubdir4/tun2proxy-${{ matrix.target }}.zip ./Tun2Proxy.xcframework/ |
|
|
|
elif [[ "${{ matrix.host_os }}" == "ubuntu-latest" ]]; then |
|
|
|
zip -j mypubdir4/tun2proxy-${{ matrix.target }}.zip target/${{ matrix.target }}/release/tun2proxy README.md target/tun2proxy-ffi.h target/${{ matrix.target }}/release/libtun2proxy.so |
|
|
|
fi |
|
|
|
|
|
|
|
@ -171,7 +171,7 @@ where |
|
|
|
Ok(proxy_handler) => { |
|
|
|
tokio::spawn(async move { |
|
|
|
if let Err(err) = handle_udp_associate_session(udp, server_addr, proxy_handler, ipv6_enabled).await { |
|
|
|
log::error!("{} error \"{}\"", info, err); |
|
|
|
log::trace!("{} reason \"{}\"", info, err); |
|
|
|
} |
|
|
|
log::trace!("Session count {}", TASK_COUNT.fetch_sub(1, Relaxed) - 1); |
|
|
|
}); |
|
|
|
|