This commit is contained in:
hzhou
2020-09-24 17:26:58 +08:00
parent a4a7602ba6
commit 3d5d219a8c
8 changed files with 21 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ async fn main() -> ResultType<()> {
DEFAULT_PORT
);
let matches = App::new("hbbr")
.version("1.0")
.version(hbbs::VERSION)
.author("Zhou Huabing <info@rustdesk.com>")
.about("RustDesk Relay Server")
.args_from_usage(&args)

View File

@@ -2,3 +2,5 @@ mod rendezvous_server;
mod sled_async;
use sled_async::*;
pub use rendezvous_server::*;
mod version;
pub use version::*;

View File

@@ -13,14 +13,14 @@ async fn main() -> ResultType<()> {
let args = format!(
"-c --config=[FILE] +takes_value 'Sets a custom config file'
-p, --port=[NUMBER(default={})] 'Sets the listening port'
-s, --serial=[NUMBER(default={0})] 'Sets configure update serial number'
-s, --serial=[NUMBER(default=0)] 'Sets configure update serial number'
-R, --rendezvous-servers=[HOSTS] 'Sets rendezvous servers, seperated by colon'
-u, --software-url=[URL] 'Sets download url of RustDesk software of newest version'
-r, --relay-server=[HOST] 'Sets the default relay server'",
DEFAULT_PORT
);
let matches = App::new("hbbs")
.version("1.0")
.version(crate::VERSION)
.author("Zhou Huabing <info@rustdesk.com>")
.about("RustDesk Rendezvous Server")
.args_from_usage(&args)