Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaa committed Feb 20, 2022
1 parent a37eede commit 87ce787
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
- uses: ncipollo/release-action@v1
with:
commit: master
tag: v0.6.10-${{ github.run_number }}
tag: stable
artifacts: "ddstats-rust-linux-x86_64.zip,ddstats-rust-windows-x86_64.zip"
bodyFile: "body.md"
preRelease: true
preRelease: false
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ddstats-rust"
version = "0.6.10+1"
version = "0.6.10+2"
edition = "2021"
build = "build.rs"

Expand Down
6 changes: 3 additions & 3 deletions src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub const V3_SURVIVAL_HASH: &str = "569fead87abf4d30fdee4231a6398051";

pub const VERSION: &str = "0.6.10";

pub const INT_VER: u32 = 1;
pub const INT_VER: u32 = 2;

pub const LOGO_ALT: &str = "
@@@@@@@ @@@@@@@ @@@@@@ @@@@@@@ @@@@@@ @@@@@@@ @@@@@@@
Expand All @@ -30,7 +30,7 @@ pub const LOGO_NEW: &str = "
███ ███ ███ ███ ███ ███ ███ ███ ███ ███
███ ▄███ ███ ▄███ ▄█ ███ ███ ███ ███ ███ ▄█ ███
████████▀ ████████▀ ▄████████▀ ▄████▀ ███ █▀ ▄████▀ ▄████████▀
v1 [ Stable ] rust";
v2 [ Stable ] rust";

pub const LOGO_MINI: &str = "
____________ _____ _____ ___ _____ _____
Expand All @@ -39,7 +39,7 @@ ____________ _____ _____ ___ _____ _____
| | | | | | | `--. \\ | || _ || | `--. \\
| |/ /| |/ / /\\__/ / | || | | || | /\\__/ /
|___/ |___/ \\____/ \\_/\\_| |_/\\_/ \\____/
v0.6.10 rust";
v2 rust";

pub const SUBMIT_RETRY_MAX: u16 = 10;

Expand Down
4 changes: 3 additions & 1 deletion src/replay_recv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// replay_recv.rs - local replay receiver (Open With...)
//

use std::time::Duration;
use std::{time::Duration, net::Ipv4Addr};
use tokio::{net::{TcpListener, TcpStream}, io::{AsyncReadExt, AsyncWriteExt}};
use crate::threads::{AAS, State};

Expand All @@ -12,6 +12,8 @@ pub struct LocalFileReplayMsg {
}

async fn process_socket(mut socket: TcpStream, state: AAS<State>) {
if socket.peer_addr().expect("No peer IP address").ip().ne(&Ipv4Addr::LOCALHOST) { return; }

let _ = socket.readable().await;
tokio::time::interval(Duration::from_millis(50)).tick().await;
let mut txt_buf = [0u8; 2000];
Expand Down
2 changes: 1 addition & 1 deletion version_info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": 1
"version": 2
}

0 comments on commit 87ce787

Please sign in to comment.