mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-04-21 21:50:21 +08:00
1.0.9 release
This commit is contained in:
@@ -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 {
|
||||
//请求本服务
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)]);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user