Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #255

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
- [Discord](#discord)
- [Pushover](#pushover)
- [Webhook](#webhook)
- [Webhook with HTTP GET reqeust](#webhook-with-http-get-reqeust)
- [Webhook with HTTP GET request](#webhook-with-http-get-request)
- [Webhook with HTTP POST request](#webhook-with-http-post-request)
- [Miscellaneous topics](#miscellaneous-topics)
- [IPv6 support](#ipv6-support)
Expand Down Expand Up @@ -743,7 +743,7 @@ More info: [English](https://faq.infomaniak.com/2376)
For Hetzner, you have to create an access token. This can be done in the DNS-Console.
(Person Icon in the top left corner --> API Tokens)
Notice: If a domain has multiple Records **only the first** Record will be updated.
Make shure there is just one record.
Make sure there is just one record.

<details>
<summary>Example</summary>
Expand Down Expand Up @@ -773,7 +773,7 @@ Make shure there is just one record.
#### OVH

For OVH, you need to provide a Consumerkey, an Appsecret, an Appkey and configure all the domains & subdomains.
The neeeded values can be obtaines by visting [this site](https://www.ovh.com/auth/api/createToken)
The needed values can be obtained by visiting [this site](https://www.ovh.com/auth/api/createToken)
Rights should be '\*' on GET, POST and PUT
More info: [help.ovhcloud.com](https://help.ovhcloud.com/csm/en-gb-api-getting-started-ovhcloud-api?id=kb_article_view&sysparm_article=KB0042784)

Expand Down Expand Up @@ -978,7 +978,7 @@ Available variables:
> - `IP`: The new IP address.
> - `IPType`: The type of the IP: `IPV4` or `IPV6`.

#### Webhook with HTTP GET reqeust
#### Webhook with HTTP GET request

```json
"webhook": {
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/ovh/ovh_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (provider *DNSProvider) UpdateIP(domainName string, subdomainName string, i
return err
}
if len(IDs) < 1 {
log.Error("No machting records")
return fmt.Errorf("no macthing records")
log.Error("No matching records")
return fmt.Errorf("no matching records")
}
outrec := Record{}

Expand Down
2 changes: 1 addition & 1 deletion internal/utils/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ func TestCheckSettings(t *testing.T) {
if err := CheckSettings(settingHE); err != nil {
t.Log("HE setting without password, passed")
} else {
t.Error("HE setting without password, should be faild")
t.Error("HE setting without password, should be failed")
}
}
4 changes: 2 additions & 2 deletions pkg/lib/ip_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (helper *IPHelper) getIPFromMikrotik() string {
defer response.Body.Close()

if response.StatusCode != http.StatusOK {
log.Error("requst code failed: ", response.StatusCode)
log.Error("request code failed: ", response.StatusCode)
return ""
}
body, err := io.ReadAll(response.Body)
Expand Down Expand Up @@ -215,7 +215,7 @@ func (helper *IPHelper) getIPFromInterface() (string, error) {
}

if ip.String() != "" {
log.Debugf("Get ip success from network intereface by: %s, IP: %s", helper.configuration.IPInterface, ip.String())
log.Debugf("Get ip success from network interface by: %s, IP: %s", helper.configuration.IPInterface, ip.String())
return ip.String(), nil
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewFromResolvConf(path string) (*DNSResolver, error) {
return &DNSResolver{servers, len(servers) * 2, rand.New(rand.NewSource(time.Now().UnixNano()))}, err
}

// LookupHost returns IP addresses of provied host.
// LookupHost returns IP addresses of provided host.
// In case of timeout retries query RetryTimes times.
func (r *DNSResolver) LookupHost(host string, dnsType uint16) ([]net.IP, error) {
return r.lookupHost(host, dnsType, r.RetryTimes)
Expand Down
2 changes: 1 addition & 1 deletion web/app/network/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Network() {
IPMode={settings.ip_mode}
IPUrls={settings.ip_urls}
IPV6Urls={settings.ipv6_urls}
onIpModeChagne={(data) => {
onIpModeChange={(data) => {
setSettings({
...settings,
ip_mode: data.IPMode,
Expand Down
2 changes: 1 addition & 1 deletion web/components/domain-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const DomainCard = (props: DomainControlProps) => {
<dialog id="modal_remove" className="modal" ref={modalRef}>
<div className="modal-box">
<h3 className="font-bold text-lg">Remove this domain?</h3>
<p className="py-4">You will permanently remove this domian from the configuration.</p>
<p className="py-4">You will permanently remove this domain from the configuration.</p>
<div className="modal-action">
<form method="dialog">
<button className="btn mr-2">Now now</button>
Expand Down
2 changes: 1 addition & 1 deletion web/components/ip-interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const IPInterface = (props: IPInterfaceProps) => {
return (
<div className="stats shadow bg-primary-content stats-vertical lg:stats-horizontal">
<div className="stat gap-2">
<div className="stat-title">IP Inerface</div>
<div className="stat-title">IP Interface</div>
<div className="flex flex-col gap-3">
<div className="flex flex-row items-center justify-start gap-2">
<span className="label-text text-slate-500 ">Set the network interface</span>
Expand Down
10 changes: 5 additions & 5 deletions web/components/ip-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface IpModeProps {
IPMode: string;
IPUrls?: string[];
IPV6Urls?: string[];
onIpModeChagne?: (data: IpModeProps) => void;
onIpModeChange?: (data: IpModeProps) => void;
}

export const IpMode = (props: IpModeProps) => {
Expand All @@ -28,8 +28,8 @@ export const IpMode = (props: IpModeProps) => {
checked={isIPV6}
onClick={() => {
isIPV6 = !isIPV6;
if (props.onIpModeChagne) {
props.onIpModeChagne({
if (props.onIpModeChange) {
props.onIpModeChange({
IPMode: isIPV6 ? 'IPV6' : 'IPV4',
IPUrls: props.IPUrls,
IPV6Urls: props.IPV6Urls,
Expand All @@ -50,8 +50,8 @@ export const IpMode = (props: IpModeProps) => {
value={isIPV6 && props.IPV6Urls ? props.IPV6Urls.join('\n') :
!isIPV6 && props.IPUrls ? props.IPUrls.join('\n') : ''}
onChange={(e) => {
if (props.onIpModeChagne) {
props.onIpModeChagne({
if (props.onIpModeChange) {
props.onIpModeChange({
IPMode: isIPV6 ? 'IPV6' : 'IPV4',
IPUrls: isIPV6 ? props.IPUrls : e.target.value.split('\n'),
IPV6Urls: isIPV6 ? e.target.value.split('\n') : props.IPV6Urls
Expand Down
Loading