mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-11 15:21:31 +11:00
parent
00668839bd
commit
77ad1dfdd1
|
@ -54,9 +54,9 @@ pub trait Config: Sized + Send + Sync + UnwindSafe + RefUnwindSafe + 'static {
|
||||||
///
|
///
|
||||||
/// # Default Implementation
|
/// # Default Implementation
|
||||||
///
|
///
|
||||||
/// Returns `127.0.0.1:25565`.
|
/// Returns `0.0.0.0:25565` to listen on every available network interface.
|
||||||
fn address(&self) -> SocketAddr {
|
fn address(&self) -> SocketAddr {
|
||||||
SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 25565).into()
|
SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), 25565).into()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Called once at startup to get the tick rate, which is the number of game
|
/// Called once at startup to get the tick rate, which is the number of game
|
||||||
|
|
Loading…
Reference in a new issue