mirror of
https://github.com/Linloir/Simple-TCP-Server.git
synced 2025-12-16 23:48:11 +08:00
Bug Fix:
- Execute parameter
This commit is contained in:
parent
125b7ba135
commit
9825802e06
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author : Linloir
|
||||
* @Date : 2022-10-06 15:44:16
|
||||
* @LastEditTime : 2022-10-20 20:25:43
|
||||
* @LastEditTime : 2022-10-22 17:56:35
|
||||
* @Description :
|
||||
*/
|
||||
|
||||
@ -16,7 +16,7 @@ import 'package:tcp_server/tcpcontroller/response.dart';
|
||||
|
||||
void main(List<String> arguments) async {
|
||||
//Set address
|
||||
var port = arguments.isEmpty ? 20706 : int.tryParse(arguments[1]) ?? 20706;
|
||||
var port = arguments.isEmpty ? 20706 : int.tryParse(arguments[0]) ?? 20706;
|
||||
|
||||
print('[L] [STARTUP ]-----------------------');
|
||||
print('[L] Running at directory ${Directory.current.path}');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user