1.0.9 release

This commit is contained in:
wanghongenpin
2024-03-27 21:42:00 +08:00
parent 1e564129de
commit 4199e4116d
9 changed files with 23 additions and 22 deletions

View File

@@ -12,7 +12,6 @@ import 'package:network_proxy/network/http/http_headers.dart';
import 'package:network_proxy/network/util/file_read.dart';
import 'components/host_filter.dart';
import 'util/process_info.dart';
class ProxyHelper {
//请求本服务

View File

@@ -84,7 +84,6 @@ class ProcessInfoUtils {
var result = await Process.run('cmd', ['/c', 'wmic process where processid=$pid get ExecutablePath']);
var output = result.stdout.toString();
var path = output.split('\n')[1].trim();
print(output);
String name = path.substring(path.lastIndexOf('\\') + 1);
return ProcessInfo(name, name.split(".")[0], path);
}

View File

@@ -208,10 +208,11 @@ class NetworkTabState extends State<NetworkTabController> with SingleTickerProvi
rowWidget("Request Package", getPackage(request)),
const SizedBox(height: 20),
rowWidget("Response Package", getPackage(response)),
const SizedBox(height: 20),
];
if (request.processInfo != null) {
content.add(const SizedBox(height: 20));
content.add(rowWidget("App", request.processInfo!.name));
content.add(const SizedBox(height: 20));
}
return ListView(children: [expansionTile("General", content)]);

View File

@@ -249,7 +249,7 @@ class _HttpState extends State<_HttpWidget> {
message = widget.message;
body = TextEditingController(text: widget.message?.bodyAsString);
if (widget.message?.headers == null && !widget.readOnly) {
initHeader["User-Agent"] = ["ProxyPin/1.0.8"];
initHeader["User-Agent"] = ["ProxyPin/1.0.9"];
initHeader["Accept"] = ["*/*"];
return;
}

View File

@@ -93,16 +93,15 @@ class RequestRowState extends State<RequestRow> {
Platform.isIOS ? const EdgeInsets.symmetric(horizontal: 8) : const EdgeInsets.only(left: 3, right: 5),
onLongPress: menu,
onTap: () {
NavigatorHelper.push(
MaterialPageRoute(
settings: const RouteSettings(name: "NetworkTabController"),
builder: (context) {
return NetworkTabController(
proxyServer: widget.proxyServer,
httpRequest: request,
httpResponse: response,
title: Text(localizations.captureDetail, style: const TextStyle(fontSize: 16)));
}));
NavigatorHelper.push(MaterialPageRoute(
settings: const RouteSettings(name: "NetworkTabController"),
builder: (context) {
return NetworkTabController(
proxyServer: widget.proxyServer,
httpRequest: request,
httpResponse: response,
title: Text(localizations.captureDetail, style: const TextStyle(fontSize: 16)));
}));
});
}
@@ -192,14 +191,17 @@ class RequestRowState extends State<RequestRow> {
),
]);
},
).then((value) => setState(() => selected = false));
).then((value) {
selected = false;
if (mounted) setState(() {});
});
}
//显示高级重发
showCustomRepeat(HttpRequest request) {
NavigatorHelper.pop();
NavigatorHelper
.push(MaterialPageRoute(builder: (context) => MobileCustomRepeat(onRepeat: () => onRepeat(request))));
NavigatorHelper.push(
MaterialPageRoute(builder: (context) => MobileCustomRepeat(onRepeat: () => onRepeat(request))));
}
onRepeat(HttpRequest request) {

View File

@@ -225,7 +225,7 @@ class _HttpState extends State<_HttpWidget> with AutomaticKeepAliveClientMixin {
message = widget.message;
body = widget.message?.bodyAsString;
if (widget.message?.headers == null && !widget.readOnly) {
initHeader["User-Agent"] = ["ProxyPin/1.0.8"];
initHeader["User-Agent"] = ["ProxyPin/1.0.9"];
initHeader["Accept"] = ["*/*"];
return;
}

View File

@@ -20,9 +20,9 @@ class About extends StatelessWidget {
const SizedBox(height: 20),
Padding(
padding: const EdgeInsets.only(left: 10, right: 10),
child: Text(isCN ? "全平台开源免费抓包软件" : "Full platform open source free packet capture software")),
child: Text(isCN ? "全平台开源免费抓包软件" : "Full platform open source free capture HTTP(S) traffic software")),
const SizedBox(height: 10),
const Text("V1.0.8"),
const Text("V1.0.9"),
ListTile(
title: const Text("Github"),
trailing: const Icon(Icons.arrow_right),

View File

@@ -65,7 +65,7 @@ class Har {
title = title.contains("ProxyPin") ? title : "[ProxyPin]$title";
har["log"] = {
"version": "1.2",
"creator": {"name": "ProxyPin", "version": "1.0.8"},
"creator": {"name": "ProxyPin", "version": "1.0.9"},
"pages": [
{
"title": title,

View File

@@ -4,7 +4,7 @@ cd ../build/linux/x64/release
rm -rf package
mkdir -p package/DEBIAN
echo "Package: ProxyPin" >> package/DEBIAN/control
echo "Version: 1.0.8" >> package/DEBIAN/control
echo "Version: 1.0.9" >> package/DEBIAN/control
echo "Priority: optional" >> package/DEBIAN/control
echo "Architecture: amd64" >> package/DEBIAN/control
echo "Depends: ca-certificates" >> package/DEBIAN/control