sail-tunnel / sail Goto Github PK
View Code? Open in Web Editor NEWA flutter demo client application for v2board.
License: MIT License
A flutter demo client application for v2board.
License: MIT License
修改API基础接口地址登录报500错误,但终端显示的200,然后退出软件在允许就是下面的错误了
hahahah@MacBook-Pro sail-master % flutter run
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 5.6s
Xcode build done. 14.6s
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
#0 new UserEntity.fromMap (package:sail/entity/user_entity.dart:50:16)
#1 UserModel.refreshData (package:sail/models/user_model.dart:40:32)
#2 main (package:sail/main.dart:26:3)
Syncing files to device iPhone 14 Pro... 163ms
Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
💪 Running with sound null safety 💪
An Observatory debugger and profiler on iPhone 14 Pro is available at:
http://127.0.0.1:59531/zhxKH2HQKi8=/
The Flutter DevTools debugger and profiler on iPhone 14 Pro is available at:
http://127.0.0.1:9104?uri=http://127.0.0.1:59531/zhxKH2HQKi8=/
Building an apk and connecting to the server is normal on Android, but cannot disconnect the server.
Please help.
自建的vboard后台,连接之后安卓没网了,任何网站都访问不了
请问作者是否可以给个联系方式 有偿求问
1項目中的接口基礎地址“https://dns.github.bet”在我測試中購買節點也不會顯示,我個人v2b可以顯示,您可看一下錯誤問題
2項目中如果選擇支付寳支付,是無法調用支付寶alipays:// ,無法喚醒
As connect is fast but disconnect encountering 20s to process, in ios con setting it's show disconnecting ...
I can't install the base url of the website api on the app
when i log in it got error, please tell me how to fix it
安卓打开VPN后无法关闭
1.appid问题 package名称不能用-连接,改成_即可或者降低flutter版本为3.0.1
2.flutter run 安卓设备时报错
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
·············省略
lib/models/server_model.dart:68:33: Warning: Operand of null-aware operation '?.' has type 'ServerEntity' which excludes null.
Where:
Script 'D:\flutter_windows\flutter_3.0.1\packages\flutter_tools\gradle\flutter.gradle' line: 1156
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'D:\flutter_windows\flutter_3.0.1\bin\flutter.bat'' finished with non-zero exit value 1
环境
Flutter 3.0.1
Dart 2.17.1
ios链接 之后无法使用WeChat
如题
I wrote a demo, but it couldn't be connected. Could you please give me some guidance on where the problem is
`import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:sail/models/app_model.dart';
import '../adapters/leaf_ffi/config.dart';
class Test extends StatefulWidget {
const Test({Key? key}) : super(key: key);
@OverRide
_TestState createState() => _TestState();
}
class _TestState extends State {
AppModel _appModel = AppModel();
@OverRide
Widget build(BuildContext context) {
return Container(
width: double.infinity,
height: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
GestureDetector(
onTap: () {
Config config = Config();
List proxyGroups = [];
print("play");
General general = General(
loglevel: 'info',
logoutput: '{{leafLogFile}}',
dnsServer: ['223.5.5.5', '114.114.114.114'],
tunFd: '{{tunFd}}',
routingDomainResolve: true);
List<Proxy> proxies = [];
proxies.add(Proxy(tag: 'Direct', protocol: 'direct'));
proxies.add(Proxy(tag: 'Reject', protocol: 'reject'));
List<Rule> rules = [];
/* rules.add(Rule(
typeField: 'EXTERNAL',
target: 'Direct',
filter: 'site:geolocation-!cn'));
rules.add(Rule(
typeField: 'EXTERNAL', target: 'Direct', filter: 'site:cn')); */
rules.add(Rule(typeField: 'FINAL', target: 'PROXY'));
config.general = general;
config.proxies = proxies;
config.rules = rules;
proxies.add(
Proxy(
tag: "nasname",
protocol: "shadowsocks",
address: "ipipipi3",
port: 5127,
encryptMethod: "chacha20-ietf-poly1305",
password: "79518f9ef06a548a",
),
);
List<String> actors = [];
actors.add("nasname");
proxyGroups.add(ProxyGroup(
tag: "UrlTest",
protocol: 'url-test',
actors: actors,
checkInterval: 600));
config.proxyGroups = proxyGroups;
config.proxies = proxies;
// config.general = General()
print("-----------------config-----------------");
print(config);
print("-----------------config-----------------");
_appModel.vpnManager.setTunnelConfiguration(config.toString());
_appModel.vpnManager.toggle();
},
child: Icon(
Icons.play_circle,
size: 80,
color: Colors.amber,
),
),
GestureDetector(
onTap: () {
print("vpn status");
_appModel.vpnManager
.getStatus()
.then((value) => {print("vpn status ==== ${value}")});
_appModel.vpnManager.getTunnelConfiguration().then((value) {
print("vpn config ==== ${value}");
});
},
child: Icon(
Icons.info,
size: 80,
color: Colors.amber,
),
),
GestureDetector(
onTap: () {
print("vpn status");
_appModel.vpnManager
..getTunnelLog().then((value) {
print("tunnel log ${value}");
});
},
child: Icon(
Icons.signal_wifi_statusbar_4_bar,
size: 80,
color: Colors.amber,
),
),
GestureDetector(
onTap: () async {
print("stop");
// _appModel.vpnManager.setTunnelConfiguration(Config().toString());
await _appModel.vpnManager.stop();
},
child: Icon(
Icons.stop_circle,
size: 80,
color: Colors.amber,
),
),
],
),
);
}
}
`
I don't understand the language of the application. If the app has English support kindly tell me how to enable it.
What protocols does it support?(ssh,vless)?
rt
Hi
would you please help me with these:
1-When the VPN is connected after clicking on disconnect, and then clicking on connect, it jumps to the yellow page but won't connect, after 10-15 second jumps back home page, and after retying, it will connect...
2- Vmess not working, even though I tried to pass vmess config manually in app_model.dart,
it is possible to have a VPN application that communicates with the panel
主要是想看看怎么绘制的界面,
不需要运行了
感谢
Thank you for your work and for sharing your results with the community. unfortunately, I have a problem - I cannot assemble the application. I get an error - "Could not build the precompiled application for the device".
I changed the bundle IDs to my own (registered in my account) but I still get this error. any advice - I will be very grateful
为什么我提的问题不见了
有谁运行起来了,方便给个联系方式吗,或者加我的v :13718004099
hi i am really need a demo ios app for v2ray I find your repo but I think it isn't implemented v2ray cli binary , two question :
1-if is not completed are you implement v2ray inside this soon as possible?
2-how i can help you to develop this application i compiled cli binary v2ray core for ios if you want i can send it to you
if you are help me i can help you in v2board becouse I am laravel developer
we need this app in Iran because over government is block all of other vpns ,
we really need to v2ray support to access to free internet
@losgif @ElforL @jerry-bool
Even though I did all the settings. Server listings are not listed. The ping list is empty. Server selection stays on the White page. can you help with this problem
Logcat
E/flutter (31688): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'int'
E/flutter (31688): #0 new UserSubscribeEntity.fromMap (package:sail/entity/user_subscribe_entity.dart:40:20)
E/flutter (31688): #1 UserService.userSubscribe. (package:sail/service/user_service.dart:28:34)
E/flutter (31688):
E/flutter (31688): #2 UserSubscribeModel.getUserSubscribe (package:sail/models/user_subscribe_model.dart:21:30)
E/flutter (31688):
E/flutter (31688): #3 HomePageState.didChangeDependencies (package:sail/pages/home/home_page.dart:69:7)
E/flutter (31688):
E/flutter (31688):
Hi
I am looking for freelancer developer for v2ray application, I will pay for this project. can you message me on whatsapp +971556308714.
or email - [email protected]
Flutter Vision :3.1.0
Dart Vision:2.18.0
DevTool:2.14.0
when toggle the button
E/SurfaceSyncer(24114): Failed to find sync for id=0
W/Parcel (24114): Expecting binder but got null!
D/AndroidRuntime(24114): Shutting down VM
E/AndroidRuntime(24114): FATAL EXCEPTION: main
E/AndroidRuntime(24114): Process: com.sail_tunnel.sail, PID: 24114
E/AndroidRuntime(24114): java.lang.UnsatisfiedLinkError: dlopen failed: library "libleaf.so" not found
E/AndroidRuntime(24114): at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
E/AndroidRuntime(24114): at java.lang.Runtime.loadLibrary0(Runtime.java:998)
E/AndroidRuntime(24114): at java.lang.System.loadLibrary(System.java:1661)
E/AndroidRuntime(24114): at com.sail_tunnel.sail.services.TunnelInstance.(TunnelInstance.kt:22)
E/AndroidRuntime(24114): at com.sail_tunnel.sail.TunnelService.onStartCommand(TunnelService.kt:78)
E/AndroidRuntime(24114): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4655)
E/AndroidRuntime(24114): at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
E/AndroidRuntime(24114): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2180)
E/AndroidRuntime(24114): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(24114): at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(24114): at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(24114): at android.app.ActivityThread.main(ActivityThread.java:7872)
E/AndroidRuntime(24114): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(24114): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(24114): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
D/EGL_emulation(24114): app_time_stats: avg=6412.12ms min=181.73ms max=12642.51ms count=2
I/Process (24114): Sending signal. PID: 24114 SIG: 9
Lost connection to device.
错误信息如下:
Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Users/ljc/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.7.2+2/ios/Classes/My
CookieManager.swift:259:43
Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Users/ljc/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.7.2+2/ios/Classes/My
CookieManager.swift:293:43
请问这个问题需要怎么解决呢 感谢感谢感谢!
When there is no problem between the node and the server, and the nodes 🟠 or 🔵 the application cannot list the servers and gives an error that you have no subscriptions. but if there is a problem between the node and the server and the node is marked as 🔴, the servers are listed but of course the connection cannot be established.
ios运行起来没有网络的问题!作者求救!
我修复了许多bug,已经不报错了!但是怎么运行都没有网络是什么原因呢?
I have been able to compile the application on Android but the list of user nodes does not show anything, is it normal? I am using v2board
when I press to the power button to start VPN connection ,app is closing and this error shows to me
Runner/AppDelegate.swift:26: Fatal error: load VPN preference failed: Optional(Error Domain=NEVPNErrorDomain Code=5 "IPC failed" UserInfo={NSLocalizedDescription=IPC failed})
what is the problem?
May I ask which file should I modify?finish it.
Can't get node list problem
在安卓设备中可进行vpn链接,但是无法进行关闭服务
when I press to the power button to start VPN connection ,app is closing and this error shows to me
Runner/AppDelegate.swift:26: Fatal error: load VPN preference failed: Optional(Error Domain=NEVPNErrorDomain Code=5 "IPC failed" UserInfo={NSLocalizedDescription=IPC failed})
what is the problem?
/root/sail/android/app/src/main/kotlin/com/sail_tunnel/sail/utils/DeviceStorageApp.kt: Error: Expected Application subtype to implement Configuration.Provider [BadConfigurationProvider from work-runtime-2.7.1]
Explanation for issues of type "BadConfigurationProvider":
An android.app.Application must implement
androidx.work.Configuration.Provider
for on-demand initialization.
Vendor: Android Open Source Project (work-runtime-2.7.1)
Identifier: work-runtime-2.7.1
Feedback: https://issuetracker.google.com/issues/new?component=192731
1 errors, 0 warnings
FAILURE: Build failed with an exception.
Lint found fatal errors while assembling a release target.
Fix the issues identified by lint, or create a baseline to see only new errors:
android {
lint {
baseline = file("lint-baseline.xml")
}
}
For more details, see https://developer.android.com/studio/write/lint#snapshot
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 1m 30s
Running Gradle task 'assembleRelease'... 92.2s
Gradle task assembleRelease failed with exit code 1
Hello ı have problem.
2022-07-09 15:07:14.840 6847-6885/com.losgif.sail_app E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method enableVPNManager on channel com.losgif.sail/vpn_manager)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:165:7)
#1 VpnManager.enableVPNManager (package:sail_app/channels/vpn_manager.dart:10:16)
#2 AppModel.togglePowerButton (package:sail_app/models/app_model.dart:12:7)
My build Gradle. Default Setting for project
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
麻烦问下此项目有文档么
编译都通过了,但是无法登录。
谁知道什么问题?
尝试在TunnelService 类里面的onStartCommand 方法里面添加stopRunner()方法但是这个方法关闭vpn后、再次连接无法访问网络 override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { val data = data if (data.state != VpnState.State.Stopped) { Log.i("vpn状态:","关闭事件") stopRunner() return Service.START_NOT_STICKY } Log.i("vpn状态:","开启事件") try { data.proxy = TunnelInstance() } catch (e: IllegalArgumentException) { stopRunner(false, e.message) return Service.START_NOT_STICKY }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.