Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdffe9b45c | ||
|
|
fb8b5b9cf4 | ||
|
|
f85f6910d2 |
@@ -126,7 +126,7 @@ jobs:
|
||||
id: vars
|
||||
run: |
|
||||
T=${GITHUB_REF#refs/*/}
|
||||
M=${T%%.*}
|
||||
M=${T%.*}
|
||||
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
||||
echo "MAJOR_TAG=$M" >> $GITHUB_ENV
|
||||
|
||||
@@ -163,7 +163,7 @@ jobs:
|
||||
id: vars
|
||||
run: |
|
||||
T=${GITHUB_REF#refs/*/}
|
||||
M=${T%%.*}
|
||||
M=${T%.*}
|
||||
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
||||
echo "MAJOR_TAG=$M" >> $GITHUB_ENV
|
||||
|
||||
@@ -171,7 +171,6 @@ jobs:
|
||||
# this has to run only if invoked by a new tag
|
||||
- name: Create and push manifest (:ve.rs.ion)
|
||||
uses: Noelware/docker-manifest-action@master
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
with:
|
||||
tags: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}
|
||||
inputs: |
|
||||
|
||||
@@ -308,7 +308,6 @@ jobs:
|
||||
# this has to run only if invoked by a new tag
|
||||
- name: Create and push manifest (:ve.rs.ion)
|
||||
uses: Noelware/docker-manifest-action@master
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
with:
|
||||
tags: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}
|
||||
inputs: |
|
||||
|
||||
@@ -56,7 +56,7 @@ enum Data {
|
||||
RelayServers(RelayServers),
|
||||
}
|
||||
|
||||
const REG_TIMEOUT: i32 = 30_000;
|
||||
const REG_TIMEOUT: i32 = 100_000; //当使用websocket时,注册间隔时间会很长,改为100
|
||||
type TcpStreamSink = SplitSink<Framed<TcpStream, BytesCodec>, Bytes>;
|
||||
type WsSink = SplitSink<tokio_tungstenite::WebSocketStream<TcpStream>, tungstenite::Message>;
|
||||
struct SafeWsSink {
|
||||
@@ -496,7 +496,7 @@ impl RendezvousServer {
|
||||
ws: bool,
|
||||
) -> bool {
|
||||
if let Ok(msg_in) = RendezvousMessage::parse_from_bytes(bytes) {
|
||||
// log::debug!("Received TCP message from {}: {:?}", addr, msg_in);
|
||||
log::debug!("Received TCP message from {}: {:?}", addr, msg_in);
|
||||
match msg_in.union {
|
||||
Some(rendezvous_message::Union::RegisterPeer(rp)) => {
|
||||
// B registered
|
||||
|
||||
Reference in New Issue
Block a user