mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
server: Make 'rojo serve' respect --port option
This commit is contained in:
parent
86e0f3fabe
commit
9cfeee0577
3 changed files with 61 additions and 21 deletions
|
|
@ -188,7 +188,7 @@ impl Server {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn listen(self, port: u64) {
|
||||
pub fn listen(self, port: u16) {
|
||||
let address = format!("0.0.0.0:{}", port);
|
||||
|
||||
rouille::start_server(address, move |request| self.handle_request(request));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue