mirror of https://github.com/ospab/ostp.git
Restore Session import for Windows compatibility and fix Flutter build
This commit is contained in:
parent
0953b83e3c
commit
01d7d19b11
|
|
@ -1,6 +1,7 @@
|
|||
use anyhow::{anyhow, Result};
|
||||
use std::sync::Arc;
|
||||
use crate::config::{ClientConfig, InboundConfig};
|
||||
#[allow(unused_imports)]
|
||||
use crate::tunnel::router::{Router, Session};
|
||||
use crate::tunnel::outbounds::OutboundManager;
|
||||
use tokio::sync::watch;
|
||||
|
|
|
|||
|
|
@ -527,8 +527,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|||
if (_dnsDomainCtrl.text.trim().isNotEmpty) {
|
||||
queryParams.add('domain=${Uri.encodeComponent(_dnsDomainCtrl.text.trim())}');
|
||||
}
|
||||
if (_dnsRegion != 'Global') {
|
||||
queryParams.add('region=${Uri.encodeComponent(_dnsRegion)}');
|
||||
final resolver = _dnsRegionCtrl.text.trim();
|
||||
if (resolver.isNotEmpty && resolver != '1.1.1.1') {
|
||||
queryParams.add('resolver=${Uri.encodeComponent(resolver)}');
|
||||
}
|
||||
if (_pbkCtrl.text.trim().isNotEmpty) {
|
||||
queryParams.add('pbk=${Uri.encodeComponent(_pbkCtrl.text.trim())}');
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 0.3.11+24
|
||||
version: 0.3.12+25
|
||||
|
||||
environment:
|
||||
sdk: ^3.11.4
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "ostp-gui",
|
||||
"version": "0.3.11",
|
||||
"version": "0.3.12",
|
||||
"identifier": "com.ospab.ostp",
|
||||
"build": {
|
||||
"frontendDist": "../src"
|
||||
|
|
|
|||
Loading…
Reference in New Issue