瀏覽代碼

ipinfo shows external IP address

master
Arun Prakash Jana 5 年之前
父節點
當前提交
658099bee0
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A75979F35C080412
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      plugins/README.md
  2. +2
    -2
      plugins/ipinfo

+ 1
- 1
plugins/README.md 查看文件

@@ -7,7 +7,7 @@
| hexview | sh | xxd, `$PAGER` | View a file in hex |
| imgresize | sh | [imgp](https://github.com/jarun/imgp) | Resize images in directory to screen resolution |
| imgur | bash | - | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) |
| ipinfo | sh | curl, whois | Fetch IP address and whois information |
| ipinfo | sh | curl, whois | Fetch external IP address and whois information |
| kdeconnect | sh | kdeconnect-cli | Send selected files to an Android device |
| ndiff | sh | vimdiff | Show diff for selection |
| nmount | sh | pmount | Toggle mount status of a device as normal user |


+ 2
- 2
plugins/ipinfo 查看文件

@@ -1,6 +1,6 @@
#!/usr/bin/env sh

# Description: Shows the IP address and whois information. Useful over VPNs.
# Description: Shows the external IP address and whois information. Useful over VPNs.
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
@@ -8,6 +8,6 @@
IP=`curl -s ifconfig.me`

whois "$IP"
echo your IP address is "$IP"
echo your external IP address is "$IP"

read dummy

Loading…
取消
儲存