Skip to content

Commit

Permalink
1.0.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghongenpin committed Mar 27, 2024
1 parent 1e56412 commit 4199e41
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 22 deletions.
1 change: 0 additions & 1 deletion lib/network/proxy_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
//请求本服务
Expand Down
1 change: 0 additions & 1 deletion lib/network/util/process_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 2 additions & 1 deletion lib/ui/content/panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/desktop/left/request_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
28 changes: 15 additions & 13 deletions lib/ui/mobile/request/request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}));
});
}

Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/mobile/request/request_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/mobile/widgets/about.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/har.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4199e41

Please sign in to comment.